ropg / truetype2gfx

Converting fonts from TrueType to Adafruit GFX
78 stars 16 forks source link

Does not show NotoSansCJKtc font #2

Open mickey9801 opened 5 years ago

mickey9801 commented 5 years ago

After tested the converted version of Google NotoSansCJKtc TTF font (NotoSansCJKtc-Medium.ttf) in your site, I would like to cloned the repository to my raspberry pi server and try to run on it. But I found that not text does not shown with the same font I tested in your site.

I have tried upload the Black Street.ttf introduced in your example to my RPi and it show the input text correctly. I would like to know are there any PHP/Linux configuration may cause this problem, for example PHP memory limit, mbstring setting, system locale or some what other things?

mickey9801 commented 5 years ago

I just tried that a forked Japanese font genkai-mincho.ttf can correctly convert Japanese KANA (e.g. あいうえお) , but cannot convert Kanji of Japanese (e.g. 君), or Chinese characters (e.g. 你 我), which three types of character are multibyte characters.

mickey9801 commented 5 years ago

Fonts I tested -rw-r--r-- 1 www-data www-data 31K Feb 12 02:43 Black Street.ttf -rw-r--r-- 1 www-data www-data 7.4M Feb 12 03:02 cwTeXYen-zhonly.ttf -rw-r--r-- 1 www-data www-data 22M Feb 12 03:18 genkai-mincho.ttf -rw-r--r-- 1 www-data www-data 18M Feb 12 02:38 NotoSansCJKtc-Light.ttf -rw-r--r-- 1 www-data www-data 18M Feb 12 02:44 NotoSansCJKtc-Medium.ttf