freetype
[Top][All Lists]
Advanced

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

[Freetype] Patch: use FT_UShort instead of FT_Short for the glyph number


From: Mike FABIAN
Subject: [Freetype] Patch: use FT_UShort instead of FT_Short for the glyph number in case of bitmap fonts
Date: Fri, 14 Feb 2003 16:50:28 +0100
User-agent: Gnus/5.090014 (Oort Gnus v0.14) XEmacs/21.4 (Portable Code, x86_64-suse-linux)

There is a bug in the code for bdf and pcf files.

One must FT_UShort instead of FT_Short for the glyph number in case of
bitmap fonts. For example the GNU Unicode font has 34725 glyphs and
because of the usage of signed short all glyphs with an index above
2^15 couldn't be displayed via libXft2.

ftview could nevertheless display all glyphs, I don't know why.

But without the following patch, FT_Get_Char_Index returns 0x00008000
for the ucs4 input value 0xD2C4 and 0xFFFF8001 for the ucs4 input
value 0xD2C5. This makes 

                    if (glyph && FcFreeTypeCheckGlyph (face, ucs4, 
                                                       glyph, blanks))

in fontconfig/src/fccharset.c fail, which causes all glyphs with an
index above 2^15 to be displayed with replacement characters.

Attachment: freetype-bdf-pcf-drivr.patch
Description: Text Data

-- 
Mike Fabian   <address@hidden>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。

reply via email to

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