When drawing a chinese, japanese or korean text all I get are simple
squares. It works with all european languages and with russian fonts
flawlessly.
I am using "TTF_RenderUTF8_Blended( font, font_text.c_str(), color );"
Any idea why this is and how to fix this?
I have compiled media-libs/freetype-2.1.5-r1 with -bindist +cjk -debug
-doc +zlib
Best regards,
Clemens
Hi,
Clemens Lode wrote:
When drawing a chinese, japanese or korean text all I get are simple
squares. It works with all european languages and with russian fonts
flawlessly.
I am using “TTF_RenderUTF8_Blended( font, font_text.c_str(), color );”
Any idea why this is and how to fix this?
I think the actual problem might be that your font doesn’t contain any
CJK characters. There are a couple of fonts on the internet that support
this, but AFAIK the default installation of a (non-CJK) windows doesn’t
contain any.
I think installing the corresponding Windows language pack (from
Windowsupdate) fixes this.
Am I correct in guessing that you understand German? If so, you might
find the forum thread http://20718.rapidforum.com/topic=101081050099
helpful for Japanese fonts.
There once was a font called “Cyberbit” by Bitstream that covered CJK
characters pretty well, but it seems it’s no longer free.
You might also google since there are quite a few CJK fonts available
for various Linux distros, which should also work in Windows.
That’s about all I know 
I have compiled media-libs/freetype-2.1.5-r1 with -bindist +cjk -debug
-doc +zlib
Best regards,
Clemens
-Sebastian
Clemens Lode <ghoul clawsoftware.de> writes:
When drawing a chinese, japanese or korean text all I get are simple
squares. It works with all european languages and with russian fonts
flawlessly.
I am using “TTF_RenderUTF8_Blended( font, font_text.c_str(), color );”
Any idea why this is and how to fix this?
I have compiled media-libs/freetype-2.1.5-r1 with -bindist +cjk -debug
-doc +zlib
Best regards,
Clemens
Ok, problem solved, sorry :o
I was naive and thought that FreeSans has chinese characters included 
Downloading korean/japanese/chinese .ttf files solved my problem :>