Re: Native TTF name sometimes contains crap
Werner LEMBERG <[email protected]> Thu, 02 Sep 2021 11:28:30 +0000 (UTC)
| Newsgroups | gmane.comp.fonts.freetype.user |
|---|---|
| Message-ID | <[email protected]> |
> 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