[gf, pk] Improve `attach_file' functions.
This commit is contained in:
parent
d93d4f6b34
commit
ad0453fd39
|
@ -483,9 +483,10 @@
|
|||
FT_TRACE4(( "TFM_Read_Metrics: Invoking TFM_Service.\n" ));
|
||||
|
||||
tfm = (TFM_Service)face->tfm;
|
||||
|
||||
if ( tfm->tfm_parser_funcs )
|
||||
{
|
||||
/* Initialise TFM Service */
|
||||
error = tfm->init( &parser,
|
||||
error = tfm->tfm_parser_funcs->init( &parser,
|
||||
memory,
|
||||
stream );
|
||||
|
||||
|
@ -495,7 +496,7 @@
|
|||
parser.FontInfo = fi;
|
||||
parser.user_data = gf_glyph;
|
||||
|
||||
error = tfm->parse_metrics( &parser );
|
||||
error = tfm->tfm_parser_funcs->parse_metrics( &parser );
|
||||
if( !error )
|
||||
FT_TRACE4(( "TFM_Read_Metrics: parsing TFM metric information done.\n" ));
|
||||
|
||||
|
@ -509,11 +510,13 @@
|
|||
" slant : %d\n", parser.FontInfo->cs, parser.FontInfo->design_size, parser.FontInfo->begin_char,
|
||||
parser.FontInfo->end_char, parser.FontInfo->font_bbx_w,
|
||||
parser.FontInfo->font_bbx_h, parser.FontInfo->slant ));
|
||||
tfm->done( &parser );
|
||||
tfm->tfm_parser_funcs->done( &parser );
|
||||
}
|
||||
}
|
||||
|
||||
if ( !error )
|
||||
{
|
||||
printf("Hi I reached here\n");
|
||||
/* Modify GF_Glyph data according to TFM metric values */
|
||||
|
||||
/*face->gf_glyph->font_bbx_w = fi->font_bbx_w;
|
||||
|
|
|
@ -479,9 +479,10 @@
|
|||
FT_TRACE4(( "TFM_Read_Metrics: Invoking TFM_Service.\n" ));
|
||||
|
||||
tfm = (TFM_Service)face->tfm;
|
||||
|
||||
if ( tfm->tfm_parser_funcs )
|
||||
{
|
||||
/* Initialise TFM Service */
|
||||
error = tfm->init( &parser,
|
||||
error = tfm->tfm_parser_funcs->init( &parser,
|
||||
memory,
|
||||
stream );
|
||||
|
||||
|
@ -491,7 +492,7 @@
|
|||
parser.FontInfo = fi;
|
||||
parser.user_data = pk_glyph;
|
||||
|
||||
error = tfm->parse_metrics( &parser );
|
||||
error = tfm->tfm_parser_funcs->parse_metrics( &parser );
|
||||
if( !error )
|
||||
FT_TRACE4(( "TFM_Read_Metrics: parsing TFM metric information done.\n" ));
|
||||
|
||||
|
@ -505,7 +506,8 @@
|
|||
" slant : %d\n", parser.FontInfo->cs, parser.FontInfo->design_size, parser.FontInfo->begin_char,
|
||||
parser.FontInfo->end_char, parser.FontInfo->font_bbx_w,
|
||||
parser.FontInfo->font_bbx_h, parser.FontInfo->slant ));
|
||||
tfm->done( &parser );
|
||||
tfm->tfm_parser_funcs->done( &parser );
|
||||
}
|
||||
}
|
||||
|
||||
if ( !error )
|
||||
|
|
Loading…
Reference in New Issue