freetype
[Top][All Lists]
Advanced

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

Re: Native TTF name sometimes contains crap


From: Werner LEMBERG
Subject: Re: Native TTF name sometimes contains crap
Date: Thu, 02 Sep 2021 11:28:30 +0000 (UTC)

> thanks to your help I'm retrieving the original names of TTFs via
> function FT_Get_Sfnt_Name() for the encode-ID TT_MS_ID_UNICODE_CS
> successfully.  This seems to work well except for some language-ID's
> of type TT_MS_LANGID_CHINESE_*.  There after decoding the
> string-member I do not get the correct name but a more or less long
> array with 췍-character (0xCDCD) only.  So it seems there is either
> something wrong or there is a special encoding used? Any idea how to
> correctly check and fix this?

My crystal ball says that you have to use the right (non-Unicode)
character encodings like Big5 or GB to read those strings.

Otherwise you should show an example.


    Werner

reply via email to

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