[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need Help!!Font Family Name is not coming as needed.
From: |
Werner LEMBERG |
Subject: |
Re: Need Help!!Font Family Name is not coming as needed. |
Date: |
Thu, 24 Aug 2023 13:59:25 +0000 (UTC) |
> 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