Fix last PFR change.

* src/pfr/pfrobjs.c (pfr_face_init): Fix rejection logic.
This commit is contained in:
Werner Lemberg 2010-06-26 09:45:41 +02:00
parent 7d91173643
commit 82ad8ab242
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2010-06-26 Werner Lemberg <wl@gnu.org>
Fix last PFR change.
* src/pfr/pfrobjs.c (pfr_face_init): Fix rejection logic.
2010-06-26 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30262.

View File

@ -146,11 +146,10 @@
if ( phy_font->chars[nn].gps_offset != 0 )
break;
if ( phy_font->num_strikes > 0 )
{
if ( nn == phy_font->num_chars )
{
if ( phy_font->num_strikes > 0 )
pfrface->face_flags = 0; /* not scalable */
}
else
{
FT_ERROR(( "pfr_face_init: font doesn't contain glyphs\n" ));
@ -158,6 +157,7 @@
goto Exit;
}
}
}
if ( (phy_font->flags & PFR_PHY_PROPORTIONAL) == 0 )
pfrface->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;