freetype
[Top][All Lists]
Advanced

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

[ft] Telling if a font has TrueType outlines


From: Michael Day
Subject: [ft] Telling if a font has TrueType outlines
Date: Sun, 1 May 2005 18:13:47 +1000 (EST)

Hi,

What is the best method to tell whether a font loaded by FreeType has
TrueType outlines?

Currently I am doing this:

    !strcmp(face->driver->clazz->root.module_name, "truetype")

However, this seems suboptimal as it depends on internal fields of the
FT_FaceRec structure. Also, presumably it would not detect the case when
an OpenType font (loaded by the "truetype" driver?) had Type 1 outlines.

Is there a better way? An unambiguous flag or version field would be
ideal; perhaps in one of the TrueType tables?

Thanks,

Michael

-- 
YesLogic Prince prints XML!
http://yeslogic.com




reply via email to

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