Re: Get the original, native name of a TTF?
Werner LEMBERG <[email protected]> Wed, 01 Sep 2021 12:46:34 +0000 (UTC)
| Newsgroups | gmane.comp.fonts.freetype.user |
|---|---|
| Message-ID | <[email protected]> |
> When calling FT_Get_Postscript_Name() the returned name of the font
> is "Simhei". But when I use the same font in an original Chinese
> software, it is not shown as "Simhei" there but as "黑辛". So my
> question: how can I get this name when using freetype library?
You have to parse the TrueType/OpenType font's 'name' table data to
get the localized entry; see `FT_Get_Sfnt_Name`.
Werner