25 #ifdef FT_DEBUG_AUTOFIT 26 int _af_debug_disable_horz_hints;
27 int _af_debug_disable_vert_hints;
28 int _af_debug_disable_blue_hints;
29 void* _af_debug_hints;
32 #include FT_INTERNAL_OBJECTS_H 33 #include FT_INTERNAL_DEBUG_H 34 #include FT_AUTOHINTER_H 35 #include FT_SERVICE_PROPERTIES_H 45 #define FT_COMPONENT trace_afmodule 91 if ( !
ft_strcmp( property_name,
"fallback-script" ) )
96 module->fallback_script = *fallback_script;
100 else if ( !
ft_strcmp( property_name,
"increase-x-height" ) )
113 FT_TRACE0((
"af_property_set: missing property `%s'\n",
115 return FT_THROW( Missing_Property );
126 FT_UInt fallback_script = module->fallback_script;
129 if ( !
ft_strcmp( property_name,
"glyph-to-script-map" ) )
141 else if ( !
ft_strcmp( property_name,
"fallback-script" ) )
146 *val = fallback_script;
150 else if ( !
ft_strcmp( property_name,
"increase-x-height" ) )
164 FT_TRACE0((
"af_property_get: missing property `%s'\n",
166 return FT_THROW( Missing_Property );
171 af_service_properties,
186 #ifdef FT_CONFIG_OPTION_PIC 192 library = module->library;
235 glyph_index, load_flags );
240 af_autofitter_interface,
248 autofit_module_class,
ft_service_list_lookup(FT_ServiceDesc service_descriptors, const char *service_id)
FT_Error(* FT_Module_Constructor)(FT_Module module)
typedefFT_BEGIN_HEADER struct AF_ModuleRec_ * AF_Module
FT_Generic_Finalizer finalizer
#define FT_DEFINE_MODULE( class_, flags_, size_, name_, version_, requires_, interface_, init_, done_, get_interface_)
af_autofitter_load_glyph(AF_Module module, FT_GlyphSlot slot, FT_Size size, FT_UInt glyph_index, FT_Int32 load_flags)
void(* FT_Generic_Finalizer)(void *object)
return FT_THROW(Missing_Property)
FT_DEFINE_AUTOHINTER_INTERFACE(af_autofitter_interface, NULL, NULL, NULL,(FT_AutoHinter_GlyphLoadFunc) af_autofitter_load_glyph) FT_DEFINE_MODULE(autofit_module_class
#define FT_DEFINE_SERVICEDESCREC1(class_, serv_id_1, serv_data_1)
af_face_globals_new(FT_Face face, AF_FaceGlobals *aglobals, AF_Module module)
const void FT_Module_Constructor FT_Module_Destructor af_autofitter_done
FT_UInt increase_x_height
GLenum GLuint GLint GLenum face
af_loader_init(AF_Module module)
FT_Module_Interface(* FT_Module_Requester)(FT_Module module, const char *name)
TT_CMap_Info_GetFunc tt_get_cmap_info const char * module_interface
FT_BEGIN_HEADER struct AF_ModuleRec_ AF_ModuleRec
FT_Pointer FT_Module_Interface
#define FT_CALLBACK_DEF(x)
af_face_globals_free(AF_FaceGlobals globals)
const void FT_Module_Constructor af_autofitter_init
&AF_SERVICE_PROPERTIES_GET af_get_interface(FT_Module module, const char *module_interface)
GLsizei const GLfloat * value
FT_Error(* FT_AutoHinter_GlyphLoadFunc)(FT_AutoHinter hinter, FT_GlyphSlot slot, FT_Size size, FT_UInt glyph_index, FT_Int32 load_flags)
FT_Error af_property_get(FT_Module ft_module, const char *property_name, void *value)
af_loader_load_glyph(AF_Module module, FT_Face face, FT_UInt gindex, FT_Int32 load_flags)
if(!abbox) return FT_THROW(Invalid_Argument)
af_loader_done(AF_Module module)
#define AF_SCRIPT_FALLBACK
const void *& AF_INTERFACE_GET
FT_Error(* FT_Properties_SetFunc)(FT_Module module, const char *property_name, const void *value)
struct AF_FaceGlobalsRec_ * AF_FaceGlobals
FT_Error af_property_get_face_globals(FT_Face face, AF_FaceGlobals *aglobals, AF_Module module)
void(* FT_Module_Destructor)(FT_Module module)
FT_Error af_property_set(FT_Module ft_module, const char *property_name, const void *value)
FT_DEFINE_SERVICE_PROPERTIESREC(af_service_properties,(FT_Properties_SetFunc) af_property_set,(FT_Properties_GetFunc) af_property_get) FT_DEFINE_SERVICEDESCREC1(af_services
#define AF_SERVICE_PROPERTIES_GET
FT_Error(* FT_Properties_GetFunc)(FT_Module module, const char *property_name, void *value)
const char * property_name
FT_TRACE0(("cff_property_set: missing property `%s'\, property_name))