[Fontconfig] [PATCH] Wrong encoding for TT_MS_ID_UCS_4
Yuriy Kaminskiy
yumkam at mail.ru
Wed Jun 24 08:42:36 PDT 2009
Hello!
In ttf namelists TT_PLATFORM_MICROSOFT/TT_MS_ID_UCS_4 uses UTF-16BE
encoding, not UCS4 (as can be implied from name); see also
freetype-2.3.5/src/sfnt/sfobjs.c. I've noticed this problem with second
(MS PGothic) and third faces (MS UI Gothic) of msgothic.ttc font
(version 5.00) - japanese family name and style name garbled and
familylang wrong.
Attached patch should work with fontconfig versions from 2.3.95 to
2.6.99; tested on 2.6.0 and 2.4.2.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.5.0-TT_MS_ID_UCS_4.patch
Type: text/x-diff
Size: 624 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090624/7917dd5e/attachment.patch
More information about the Fontconfig
mailing list