> I am using FT_FaceRec_ object to get the font family name in my
> code. But not getting the correct (entire font name as family name)
> for few fonts.  For e.g. Arial Black, Freetype is returning font
> name as Arial and Style as Black.  On further looking at code I
> found it goes into the check for TYPOGRAPHIC_FAMILY and return the
> valid string as Arial and didn't execute the condition with
> FONT_FAMILY.  Is there is any way I can know if the font family name
> has TYPOGRAPHIC_FAMILY or FONT_FAMILY.

You have to follow the rules given in the OpenType specification.
Have a look at 

  https://learn.microsoft.com/en-us/typography/opentype/spec/name
  https://learn.microsoft.com/en-us/typography/opentype/spec/recom#name


    Werner

Reply via email to