19 #include FT_INTERNAL_DEBUG_H 21 #include FT_INTERNAL_OBJECTS_H 22 #include FT_SERVICE_PFR_H 26 static FT_Service_PfrMetrics
29 FT_Service_PfrMetrics service =
NULL;
49 FT_Service_PfrMetrics service;
55 service = ft_pfr_check( face );
58 error = service->get_metrics( face,
70 if ( aoutline_resolution )
71 *aoutline_resolution = face->units_per_EM;
73 if ( ametrics_resolution )
74 *ametrics_resolution = face->units_per_EM;
76 x_scale = y_scale = 0x10000L;
79 x_scale = face->size->metrics.x_scale;
80 y_scale = face->size->metrics.y_scale;
83 if ( ametrics_x_scale )
84 *ametrics_x_scale = x_scale;
86 if ( ametrics_y_scale )
87 *ametrics_y_scale = y_scale;
89 error =
FT_THROW( Unknown_File_Format );
105 FT_Service_PfrMetrics service;
109 return FT_THROW( Invalid_Argument );
111 service = ft_pfr_check( face );
113 error = service->get_kerning( face, left, right, avector );
130 FT_Service_PfrMetrics service;
133 service = ft_pfr_check(
face );
136 error = service->get_advance(
face, gindex, aadvance );
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_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_THROW(Missing_Property)
FT_Get_PFR_Kerning(FT_Face face, FT_UInt left, FT_UInt right, FT_Vector *avector)
GLenum GLuint GLint GLenum face
#define FT_FACE_LOOKUP_SERVICE(face, ptr, id)
FT_Get_PFR_Advance(FT_Face face, FT_UInt gindex, FT_Pos *aadvance)