freetype
[Top][All Lists]
Advanced

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

Re: Get the original, native name of a TTF?


From: Werner LEMBERG
Subject: Re: Get the original, native name of a TTF?
Date: Wed, 01 Sep 2021 12:46:34 +0000 (UTC)

> 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

reply via email to

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