lvgl / lv_utils

Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
https://littlevgl.com
53 stars 39 forks source link

Cannot covert Noto Emoji #27

Closed huming2207 closed 5 years ago

huming2207 commented 5 years ago

Hi there,

I'm trying to covert the Noto Emoji font to bitmap with this tool. Then I've got a problem.

Here's what the char map supposed to be:

image

Here's the conversion result:

image

My configuration is:

image

I've tried ticking the "Convert compatible symbol font". It works, but only a certain range of the symbol are converted.

Here are the font file and the result:

NotoEmoji-Regular.ttf.zip

noto_emoji_50.c.zip

Regards, Jackson

kisvegabor commented 5 years ago

Hi,

if you load the font in FontForge you can see that the emojis starts at 0x1F200 instead of 32.

However, the font converter can't convert characters above 0xFFFF. I modified the font and moved the Emojis to 0xE000. NotoEmoji_mod.ttf.zip Check it in FontForge.

I tested it like this: image

emoji.c.zip

huming2207 commented 5 years ago

Hello @kisvegabor

Thanks for your reply. Now I get it. Indeed it is the font's issue.

Regards, Jackson

kisvegabor commented 5 years ago

Great!