Eliminate italic_angle check for PS fonts

This commit is contained in:
Keith Packard 2003-04-24 17:32:37 +00:00
parent a9829980e5
commit c4d3fef747
1 changed files with 6 additions and 0 deletions

View File

@ -769,10 +769,16 @@ FcFreeTypeQuery (const FcChar8 *file,
} }
} }
#if 0
/*
* Don't bother with italic_angle; FreeType already extracts that
* information for us and sticks it into style_flags
*/
if (psfontinfo.italic_angle < 0) if (psfontinfo.italic_angle < 0)
slant = FC_SLANT_ITALIC; slant = FC_SLANT_ITALIC;
else if (psfontinfo.italic_angle >= 0) else if (psfontinfo.italic_angle >= 0)
slant = FC_SLANT_ROMAN; slant = FC_SLANT_ROMAN;
#endif
if(!foundry) if(!foundry)
foundry = FcNoticeFoundry(psfontinfo.notice); foundry = FcNoticeFoundry(psfontinfo.notice);