CoreText: stricter handling of FontSymbolic traits
authorKristian Rietveld <kris@lanedo.com>
Mon, 14 Nov 2011 09:48:53 +0000 (10:48 +0100)
committerKristian Rietveld <kris@lanedo.com>
Mon, 14 Nov 2011 09:54:05 +0000 (10:54 +0100)
commitcce4c9f84350bb53371323ab96ccf9245e014f75
tree4b3a67b40d3dd895b92dfde3d1a0589abc1f65a9
parentc21b1bfe1278de08673c495ba398fbdee874a778
CoreText: stricter handling of FontSymbolic traits

It turns out that getting this value as "Int" is incorrect and resulted
in font traits not being returned in some cases.  Without traits, an
italic trait is not set, which caused synthetic oblique fonts to be
created when not necessary.

Also use CTFontSymbolicTraits type in the PangoCoreTextFace structure
and do a stricter bit mask check for certainty.
pango/pangocoretext-fontmap.c