19 #include FT_INTERNAL_OBJECTS_H
20 #include FT_SERVICE_PFR_H
24 static FT_Service_PfrMetrics
27 FT_Service_PfrMetrics service =
NULL;
47 FT_Service_PfrMetrics service;
56 error = service->get_metrics( face,
68 if ( aoutline_resolution )
69 *aoutline_resolution = face->units_per_EM;
71 if ( ametrics_resolution )
72 *ametrics_resolution = face->units_per_EM;
74 x_scale = y_scale = 0x10000L;
77 x_scale = face->size->metrics.x_scale;
78 y_scale = face->size->metrics.y_scale;
81 if ( ametrics_x_scale )
82 *ametrics_x_scale = x_scale;
84 if ( ametrics_y_scale )
85 *ametrics_y_scale = y_scale;
87 error = FT_Err_Unknown_File_Format;
103 FT_Service_PfrMetrics service;
111 error = service->get_kerning( face, left, right, avector );
128 FT_Service_PfrMetrics service;
134 error = service->get_advance( face, gindex, aadvance );
FT_Get_Kerning(FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning)
FT_BEGIN_HEADER typedef signed long FT_Pos
return FT_Err_Invalid_Argument
static FT_Service_PfrMetrics ft_pfr_check(FT_Face face)
#define FT_FACE_LOOKUP_SERVICE(face, ptr, id)
FT_BEGIN_HEADER FT_Get_PFR_Metrics(FT_Face face, FT_UInt *aoutline_resolution, FT_UInt *ametrics_resolution, FT_Fixed *ametrics_x_scale, FT_Fixed *ametrics_y_scale)
FT_Get_PFR_Kerning(FT_Face face, FT_UInt left, FT_UInt right, FT_Vector *avector)
FT_Get_PFR_Advance(FT_Face face, FT_UInt gindex, FT_Pos *aadvance)