609 |
} |
} |
610 |
|
|
611 |
|
|
612 |
|
#ifndef FT_OPTIMIZE_MEMORY |
613 |
/* |
/* |
614 |
* The kerning data embedded in a PFR font are (charcode,charcode) |
* The kerning data embedded in a PFR font are (charcode,charcode) |
615 |
* pairs; we need to translate them to (gindex,gindex) and sort |
* pairs; we need to translate them to (gindex,gindex) and sort |
748 |
|
|
749 |
return error; |
return error; |
750 |
} |
} |
751 |
|
#endif /* !FT_OPTIMIZE_MEMORY */ |
752 |
|
|
753 |
static const PFR_ExtraItemRec pfr_phy_font_extra_items[] = |
static const PFR_ExtraItemRec pfr_phy_font_extra_items[] = |
754 |
{ |
{ |
827 |
FT_FREE( phy_font->blue_values ); |
FT_FREE( phy_font->blue_values ); |
828 |
phy_font->num_blue_values = 0; |
phy_font->num_blue_values = 0; |
829 |
|
|
830 |
|
#ifndef FT_OPTIMIZE_MEMORY |
831 |
FT_FREE( phy_font->kern_pairs ); |
FT_FREE( phy_font->kern_pairs ); |
832 |
|
#endif |
833 |
|
|
834 |
{ |
{ |
835 |
PFR_KernItem item, next; |
PFR_KernItem item, next; |
836 |
|
|
1069 |
phy_font->bct_offset = FT_STREAM_POS(); |
phy_font->bct_offset = FT_STREAM_POS(); |
1070 |
phy_font->cursor = NULL; |
phy_font->cursor = NULL; |
1071 |
|
|
1072 |
|
#ifndef FT_OPTIMIZE_MEMORY |
1073 |
/* now sort kerning pairs */ |
/* now sort kerning pairs */ |
1074 |
error = pfr_sort_kerning_pairs( stream, phy_font ); |
error = pfr_sort_kerning_pairs( stream, phy_font ); |
1075 |
|
#endif |
1076 |
|
|
1077 |
Exit: |
Exit: |
1078 |
return error; |
return error; |