Re: Need Help!!Font Family Name is not coming as needed.

Werner LEMBERG <[email protected]> Thu, 24 Aug 2023 13:59:25 +0000 (UTC)
Newsgroups gmane.comp.fonts.freetype.user
Message-ID <[email protected]>
 
> Looking more closely at code I think freetype is returning preferred
> Family name of font as font family if that is present inside font.
> Is there anyway to know if the font name is picked from preferred
> Family name or Family only.

No, there isn't.  Why do you need that?

You can either use `FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY` and/or
`FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY` to enforce the old
four-faces-per-family scheme, or you can parse the 'name' table by
yourself, see `FT_Get_Sfnt_Name`.


   Werner