About Store Forum Documentation Contact



Post Reply 
How does a "Custom Chars" works? (in Font Editor)
Author Message
mizukami Offline
Member

Post: #1
How does a "Custom Chars" works? (in Font Editor)
I want to draw multi-bytes character (called "NIHONGO/Japanese") by "D.text" or "Text.create".
But some of characters not shown. So, I assigned these characters into "Custom Chars".

Is this a right way? And how does a "Custom Chars" works? (inside of EE)
(I'm not sure about font handling in EE.)
03-04-2016 03:07 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: How does a "Custom Chars" works? (in Font Editor)
Hi,

When you type some characters in the Custom Chars then they will be included in the font.
That's the right way.
However your source font may not actually contain these characters.
To verify that it has, you can enter the same characters into the "Display: Text" field, this will display them, if the font has it.
If not, you will need to use a different system font.
03-04-2016 11:05 PM
Find all posts by this user Quote this message in a reply
mizukami Offline
Member

Post: #3
RE: How does a "Custom Chars" works? (in Font Editor)
Thanks for reply.

What kind of Characters need to assigned into "Custom Char"?

And in "Font Editor". Character that not in specified font-set (for example "ARIAL"), it can shows multi-bytes charcter (when write into "Display text"). However it seems to drawn with something gothic font.
Some default font selected automatically in this case?
03-07-2016 10:12 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: How does a "Custom Chars" works? (in Font Editor)
Hello,

You can specify any characters that you want for the "Custom Char"
If you don't specify, then the characters will not be included in the font.
If you specify, then the characters will be included in the font.

You should specify only those characters that you really need, to avoid having too big font files.

Quote:And in "Font Editor". Character that not in specified font-set (for example "ARIAL"), it can shows multi-bytes charcter (when write into "Display text"). However it seems to drawn with something gothic font.
Some default font selected automatically in this case?
Could you please attach a sample image describing the issue?

No other font is used if the character is not present. Font is created by the system functions, and it's created using one font.
If you see other types of characters, it means that the system functions did that.

Please refer to source code:
https://github.com/Esenthel/EsenthelEngi...i/Font.cpp
classes SystemFont and SystemFontDrawContext

Let me know if you need more help
03-22-2016 11:11 AM
Find all posts by this user Quote this message in a reply
mizukami Offline
Member

Post: #5
[SOLVED] RE: How does a "Custom Chars" works? (in Font Editor)
(03-22-2016 11:11 AM)Esenthel Wrote:  No other font is used if the character is not present. Font is created by the system functions, and it's created using one font.
If you see other types of characters, it means that the system functions did that.

Clearly solved.
Thanks for your help.

But I cannot found "Font.cpp", URL below (404).

https://github.com/Esenthel/EsenthelEngi...i/Font.cpp
03-23-2016 09:04 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: How does a "Custom Chars" works? (in Font Editor)
Hi,

That link is if you have a Source Code license.
http://www.esenthel.com/?id=doc#Accessing_Source
03-23-2016 10:15 AM
Find all posts by this user Quote this message in a reply
mizukami Offline
Member

Post: #7
RE: How does a "Custom Chars" works? (in Font Editor)
(03-23-2016 10:15 AM)Esenthel Wrote:  That link is if you have a Source Code license.
http://www.esenthel.com/?id=doc#Accessing_Source

Oh, I see.
Thanks.
03-23-2016 10:22 AM
Find all posts by this user Quote this message in a reply
Post Reply