> 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
_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype