freetype
[Top][All Lists]
Advanced

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

Re: [ft] Possible Bug in FT_Get_FSType_Flags


From: Werner LEMBERG
Subject: Re: [ft] Possible Bug in FT_Get_FSType_Flags
Date: Thu, 18 Jun 2015 06:20:41 +0200 (CEST)

> According to FreeType document, the FT_GetFSType should return one
> of the FT_FSTYPE_XXX flag.

This is not correct.  The flags are ORed, so more than a single
FT_FSTYPE_XXX flag can be returned.  I've clarified it in the
documentation.

> But I receive a 1, which is not listed as any of those flags.

Have you tried a different font?  It might be a bug in the font
itself.

>              switch(flag)

This doesn't work.  Try rather something like

  if (flag & FT_FSTYPE_INSTALLABLE_EMBEDDING)
    ...
  if (flag & FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING)
    ...
  ...


     Werner



reply via email to

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