|
|
|
@ -268,9 +268,7 @@ |
|
|
|
|
header->version > 4 || |
|
|
|
|
header->header_size < 58 || |
|
|
|
|
header->signature2 != 0x0D0A ) /* CR/LF */ |
|
|
|
|
{ |
|
|
|
|
result = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
@ -406,11 +404,9 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ( flags & PFR_LOG_BOLD ) |
|
|
|
|
{ |
|
|
|
|
log_font->bold_thickness = ( flags & PFR_LOG_2BYTE_BOLD ) |
|
|
|
|
? PFR_NEXT_SHORT( p ) |
|
|
|
|
: PFR_NEXT_BYTE( p ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ( flags & PFR_LOG_EXTRA_ITEMS ) |
|
|
|
|
{ |
|
|
|
@ -604,7 +600,7 @@ |
|
|
|
|
if ( FT_QNEW_ARRAY( snaps, count ) ) |
|
|
|
|
goto Exit; |
|
|
|
|
|
|
|
|
|
phy_font->vertical.stem_snaps = snaps; |
|
|
|
|
phy_font->vertical.stem_snaps = snaps; |
|
|
|
|
phy_font->horizontal.stem_snaps = snaps + num_vert; |
|
|
|
|
|
|
|
|
|
for ( ; count > 0; count--, snaps++ ) |
|
|
|
@ -621,7 +617,6 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* load kerning pair data */ |
|
|
|
|
FT_CALLBACK_DEF( FT_Error ) |
|
|
|
|
pfr_extra_item_load_kerning_pairs( FT_Byte* p, |
|
|
|
@ -858,7 +853,7 @@ |
|
|
|
|
phy_font->flags = flags = PFR_NEXT_BYTE( p ); |
|
|
|
|
|
|
|
|
|
/* get the standard advance for non-proportional fonts */ |
|
|
|
|
if ( !(flags & PFR_PHY_PROPORTIONAL) ) |
|
|
|
|
if ( !( flags & PFR_PHY_PROPORTIONAL ) ) |
|
|
|
|
{ |
|
|
|
|
PFR_CHECK( 2 ); |
|
|
|
|
phy_font->standard_advance = PFR_NEXT_SHORT( p ); |
|
|
|
@ -869,14 +864,13 @@ |
|
|
|
|
{ |
|
|
|
|
error = pfr_extra_items_parse( &p, limit, |
|
|
|
|
pfr_phy_font_extra_items, phy_font ); |
|
|
|
|
|
|
|
|
|
if ( error ) |
|
|
|
|
goto Fail; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* In certain fonts, the auxiliary bytes contain interesting */ |
|
|
|
|
/* information. These are not in the specification but can be */ |
|
|
|
|
/* guessed by looking at the content of a few PFR0 fonts. */ |
|
|
|
|
/* guessed by looking at the content of a few 'PFR0' fonts. */ |
|
|
|
|
PFR_CHECK( 3 ); |
|
|
|
|
num_aux = PFR_NEXT_ULONG( p ); |
|
|
|
|
|
|
|
|
|