[Fontconfig] [PATCH] Wrong encoding for TT_MS_ID_UCS_4

Yuriy Kaminskiy yumkam at mail.ru
Wed Jul 22 16:30:23 PDT 2009


On 23.07.2009 03:23, Yuriy Kaminskiy wrote:
> On 23.07.2009 01:10, Behdad Esfahbod wrote:
>> On 07/22/2009 05:06 PM, Yuriy Kaminskiy wrote:
>>> On 24.06.2009 19:42, Yuriy Kaminskiy wrote:
>> Are you sure?  This is what I see in the code:
> [shurg] I did not checked any standards on this, but that's what I have in
> practice (i.e. on real font; before my change it's garbled, after - all ok); and
> what I see in freetype2 code.
=== cut freetype-2.3.9/sfnt/sfobjs.c:239 ====
      case TT_MS_ID_UCS_4:
        /* Apparently, if this value is found in a name table entry, it is */
        /* documented as `full Unicode repertoire'.  Experience with the   */
        /* MsGothic font shipped with Windows Vista shows that this really */
        /* means UTF-16 encoded names (UCS-4 values are only used within   */
        /* charmaps).                                                      */
        convert = tt_name_entry_ascii_from_utf16;
=== cut ===



More information about the Fontconfig mailing list