26 #ifndef T1_CONFIG_OPTION_NO_AFM 30 #include FT_INTERNAL_DEBUG_H 31 #include FT_INTERNAL_STREAM_H 33 #include FT_SERVICE_MULTIPLE_MASTERS_H 34 #include FT_SERVICE_GLYPH_DICT_H 35 #include FT_SERVICE_XFREE86_NAME_H 36 #include FT_SERVICE_POSTSCRIPT_NAME_H 37 #include FT_SERVICE_POSTSCRIPT_CMAPS_H 38 #include FT_SERVICE_POSTSCRIPT_INFO_H 39 #include FT_SERVICE_KERNING_H 49 #define FT_COMPONENT trace_t1driver 88 static const FT_Service_GlyphDictRec t1_service_glyph_dict =
107 static const FT_Service_PsFontNameRec t1_service_ps_name =
118 #ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT 119 static const FT_Service_MultiMastersRec t1_service_multi_masters =
136 t1_ps_get_font_info(
FT_Face face,
139 *afont_info = ((
T1_Face)face)->type1.font_info;
146 t1_ps_get_font_extra(
FT_Face face,
149 *afont_extra = ((
T1_Face)face)->type1.font_extra;
156 t1_ps_has_glyph_names(
FT_Face face )
165 t1_ps_get_font_private(
FT_Face face,
168 *afont_private = ((
T1_Face)face)->type1.private_dict;
175 t1_ps_get_font_value(
FT_Face face,
190 if (
value && value_len >= retval )
201 retval =
sizeof (
val );
202 if (
value && value_len >= retval )
231 retval =
sizeof (
val );
232 if (
value && value_len >= retval )
256 if (
value && value_len >= retval )
262 if (
value && value_len >= retval )
268 if (
value && value_len >= retval )
274 if (
value && value_len >= retval )
282 if (
value && value_len >= retval )
294 if (
value && value_len >= retval )
305 if (
value && value_len >= retval )
314 if (
value && value_len >= retval )
325 if (
value && value_len >= retval )
333 if (
value && value_len >= retval )
343 if (
value && value_len >= retval )
349 if (
value && value_len >= retval )
355 if (
value && value_len >= retval )
360 if ( idx < type1->private_dict.num_blue_values )
363 if (
value && value_len >= retval )
370 if (
value && value_len >= retval )
376 if (
value && value_len >= retval )
382 if (
value && value_len >= retval )
388 if (
value && value_len >= retval )
393 if ( idx < type1->private_dict.num_other_blues )
396 if (
value && value_len >= retval )
403 if (
value && value_len >= retval )
408 if ( idx < type1->private_dict.num_family_blues )
411 if (
value && value_len >= retval )
418 if (
value && value_len >= retval )
423 if ( idx < type1->private_dict.num_family_other_blues )
426 if (
value && value_len >= retval )
433 if (
value && value_len >= retval )
438 if ( idx < type1->private_dict.num_snap_widths )
441 if (
value && value_len >= retval )
448 if (
value && value_len >= retval )
453 if ( idx < type1->private_dict.num_snap_heights )
456 if (
value && value_len >= retval )
463 if (
value && value_len >= retval )
469 if (
value && value_len >= retval )
478 if (
value && value_len >= retval )
485 if (
value && value_len >= retval )
491 if (
value && value_len >= retval )
497 if (
value && value_len >= retval )
502 retval =
sizeof ( type1->
font_info.is_fixed_pitch );
503 if (
value && value_len >= retval )
508 retval =
sizeof ( type1->
font_info.underline_position );
509 if (
value && value_len >= retval )
514 retval =
sizeof ( type1->
font_info.underline_thickness );
515 if (
value && value_len >= retval )
521 if (
value && value_len >= retval )
527 if (
value && value_len >= retval )
533 if (
value && value_len >= retval )
539 if (
value && value_len >= retval )
545 if (
value && value_len >= retval )
551 if (
value && value_len >= retval )
556 retval =
sizeof ( type1->
font_info.italic_angle );
557 if (
value && value_len >= retval )
569 static const FT_Service_PsInfoRec t1_service_ps_info =
579 #ifndef T1_CONFIG_OPTION_NO_AFM 580 static const FT_Service_KerningRec t1_service_kerning =
599 #ifndef T1_CONFIG_OPTION_NO_AFM 603 #ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT 620 #ifndef T1_CONFIG_OPTION_NO_AFM 711 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 712 ft_stub_set_char_sizes,
713 ft_stub_set_pixel_sizes,
717 #ifdef T1_CONFIG_OPTION_NO_AFM FT_UShort standard_width[1]
#define FT_SERVICE_ID_MULTI_MASTERS
ft_service_list_lookup(FT_ServiceDesc service_descriptors, const char *service_id)
enum PS_Dict_Keys_ PS_Dict_Keys
struct T1_FaceRec_ * T1_Face
T1_Size_Done(FT_Size t1size)
PS_PrivateRec private_dict
FT_SERVICE_ID_POSTSCRIPT_INFO
#define FT_XF86_FORMAT_TYPE_1
PS_FontExtraRec font_extra
T1_Load_Glyph(FT_GlyphSlot t1glyph, FT_Size t1size, FT_UInt glyph_index, FT_Int32 load_flags)
struct T1_SizeRec_ T1_SizeRec
T1_GlyphSlot_Init(FT_GlyphSlot slot)
FT_Error(* FT_Set_MM_Design_Func)(FT_Face face, FT_UInt num_coords, FT_Long *coords)
T1_Set_MM_Blend(T1_Face face, FT_UInt num_coords, FT_Fixed *coords)
Get_Interface(FT_Module module, const FT_String *t1_interface)
T1_Face_Init(FT_Stream stream, FT_Face t1face, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
#define FT_MODULE_DRIVER_SCALABLE
T1_Driver_Init(FT_Module driver)
T1_Set_Var_Design(T1_Face face, FT_UInt num_coords, FT_Fixed *coords)
FT_UShort standard_height[1]
T1_Face_Done(FT_Face t1face)
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLenum GLuint GLint GLenum face
FT_CALLBACK_TABLE_DEF const FT_Driver_ClassRec t1_driver_class
T1_Set_MM_Design(T1_Face face, FT_UInt num_coords, FT_Long *coords)
T1_Size_Init(FT_Size t1size)
#define FT_MODULE_DRIVER_HAS_HINTER
T1_Driver_Done(FT_Module driver)
FT_Long(* PS_GetFontValueFunc)(FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len)
FT_UInt(* FT_GlyphDict_NameIndexFunc)(FT_Face face, FT_String *glyph_name)
#define FT_SERVICE_ID_XF86_NAME
FT_Pointer FT_Module_Interface
FT_PtrDist * charstrings_len
FT_Error(* FT_Set_Var_Design_Func)(FT_Face face, FT_UInt num_coords, FT_Fixed *coords)
enum T1_EncodingType_ T1_EncodingType
#define FT_CALLBACK_DEF(x)
T1_Read_Metrics(FT_Face t1_face, FT_Stream stream)
FT_Error(* FT_Set_MM_Blend_Func)(FT_Face face, FT_UInt num_coords, FT_Long *coords)
#define FT_MODULE_FONT_DRIVER
FT_SERVICE_ID_POSTSCRIPT_FONT_NAME
GLsizei const GLfloat * value
FT_Error(* PS_GetFontExtraFunc)(FT_Face face, PS_FontExtraRec *afont_extra)
T1_EncodingType encoding_type
#define FT_SERVICE_ID_KERNING
const char *(* FT_PsName_GetFunc)(FT_Face face)
#define FT_CALLBACK_TABLE_DEF
FT_Short family_blues[14]
T1_Get_MM_Var(T1_Face face, FT_MM_Var **master)
FT_Error(* FT_Get_MM_Func)(FT_Face face, FT_Multi_Master *master)
T1_Size_Request(FT_Size t1size, FT_Size_Request req)
FT_Short snap_heights[13]
T1_Get_Advances(FT_Face t1face, FT_UInt first, FT_UInt count, FT_Int32 load_flags, FT_Fixed *advances)
FT_BEGIN_HEADER struct PS_FontInfoRec_ PS_FontInfoRec
FT_Byte num_family_other_blues
T1_GlyphSlot_Done(FT_GlyphSlot slot)
FT_Int(* PS_HasGlyphNamesFunc)(FT_Face face)
struct FT_DriverRec_ FT_DriverRec
FT_Error(* PS_GetFontPrivateFunc)(FT_Face face, PS_PrivateRec *afont_private)
#define FT_STRCPYN(dst, src, size)
FT_Short family_other_blues[10]
T1_Get_Track_Kerning(FT_Face face, FT_Fixed ptsize, FT_Int degree, FT_Fixed *kerning)
T1_Get_Multi_Master(T1_Face face, FT_Multi_Master *master)
T1_Get_Kerning(AFM_FontInfo fi, FT_UInt glyph1, FT_UInt glyph2, FT_Vector *kerning)
FT_Error(* FT_GlyphDict_GetNameFunc)(FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max)
FT_Error(* FT_Get_MM_Var_Func)(FT_Face face, FT_MM_Var **master)
FT_Error(* PS_GetFontInfoFunc)(FT_Face face, PS_FontInfoRec *afont_info)