freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] problem with Korean characters and font


From: Werner LEMBERG
Subject: Re: [ft] problem with Korean characters and font
Date: Wed, 29 Feb 2012 18:15:13 +0100 (CET)

> I've tried to use FreeType2 to render some Korean characters:
> "게으른이 피었습니다" with font gulim.ttc (GulimChe) and I've
> received just "???? ??????" instead of appropriate bitmaps.
> 
> PS: That happens If I choose parameter "Use Unicode Character Set"
> or "Use Multi-Byte Character Set" in Visual Studio. If i choose "Not
> Set" for Character set, glyphs even don't load with FT_Load_Glyph.

FT_Load_Glyph expects glyph indices, not character codes!  You should
select a Unicode cmap with FT_Select_Charmap, then using FT_Load_Char
(which then expects Unicode values, not UTF-8).


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]