Home | History | Annotate | Download | only in base

Lines Matching defs:module

607      * - Do only auto-hinting if we have a hinter module, a scalable font
3856 ft_add_renderer( FT_Module module )
3858 FT_Library library = module->library;
3868 FT_Renderer render = FT_RENDERER( module );
3869 FT_Renderer_Class* clazz = (FT_Renderer_Class*)module->clazz;
3888 node->data = module;
3904 ft_remove_renderer( FT_Module module )
3906 FT_Library library = module->library;
3911 node = FT_List_Find( &library->renderers, module );
3914 FT_Renderer render = FT_RENDERER( module );
4088 /* Destroys a given module object. For drivers, this also destroys */
4092 /* module :: A handle to the target driver object. */
4098 Destroy_Module( FT_Module module )
4100 FT_Memory memory = module->memory;
4101 FT_Module_Class* clazz = module->clazz;
4102 FT_Library library = module->library;
4105 if ( library && library->auto_hinter == module )
4108 /* if the module is a renderer */
4109 if ( FT_MODULE_IS_RENDERER( module ) )
4110 ft_remove_renderer( module );
4112 /* if the module is a font driver, add some steps */
4113 if ( FT_MODULE_IS_DRIVER( module ) )
4114 Destroy_Driver( FT_DRIVER( module ) );
4116 /* finalize the module object */
4118 clazz->module_done( module );
4121 FT_FREE( module );
4133 FT_Module module;
4150 /* look for a module with the same name in the library's table */
4153 module = library->modules[nn];
4154 if ( ft_strcmp( module->clazz->module_name, clazz->module_name ) == 0 )
4156 /* this installed module has the same name, compare their versions */
4157 if ( clazz->module_version <= module->clazz->module_version )
4160 /* remove the module from our list, then exit the loop to replace */
4162 FT_Remove_Module( library, module );
4176 /* allocate module object */
4177 if ( FT_ALLOC( module, clazz->module_size ) )
4181 module->library = library;
4182 module->memory = memory;
4183 module->clazz = (FT_Module_Class*)clazz;
4185 /* check whether the module is a renderer - this must be performed */
4186 /* before the normal module initialization */
4187 if ( FT_MODULE_IS_RENDERER( module ) )
4190 error = ft_add_renderer( module );
4195 /* is the module a auto-hinter? */
4196 if ( FT_MODULE_IS_HINTER( module ) )
4197 library->auto_hinter = module;
4199 /* if the module is a font driver */
4200 if ( FT_MODULE_IS_DRIVER( module ) )
4203 FT_Driver driver = FT_DRIVER( module );
4206 driver->clazz = (FT_Driver_Class)module->clazz;
4217 error = clazz->module_init( module );
4222 /* add module to the library's table */
4223 library->modules[library->num_modules++] = module;
4229 if ( FT_MODULE_IS_DRIVER( module ) )
4231 FT_Driver driver = FT_DRIVER( module );
4238 if ( FT_MODULE_IS_RENDERER( module ) )
4240 FT_Renderer renderer = FT_RENDERER( module );
4248 FT_FREE( module );
4287 FT_Module module;
4292 module = FT_Get_Module( library, mod_name );
4294 return module ? module->clazz->module_interface : 0;
4299 ft_module_get_service( FT_Module module,
4304 if ( module )
4306 FT_ASSERT( module->clazz && module->clazz->get_interface );
4308 /* first, look for the service in the module
4310 if ( module->clazz->get_interface )
4311 result = module->clazz->get_interface( module, service_id );
4317 FT_Library library = module->library;
4324 if ( cur[0] != module )
4347 FT_Module module )
4349 /* try to find the module from the table, then remove it from there */
4354 if ( module )
4362 if ( cur[0] == module )
4374 /* destroy the module */
4375 Destroy_Module( module );
4521 * - the cff font driver uses the pshinter module in cff_size_done
4522 * - if the pshinter module is destroyed before the cff font driver,
4542 FT_Module module = library->modules[n];
4543 const char* module_name = module->clazz->module_name;
4551 if ( ( module->clazz->module_flags & FT_MODULE_FONT_DRIVER ) == 0 )
4556 faces = &FT_DRIVER( module )->faces_list;
4570 /* type42 module is removed before truetype module. This */
4582 FT_Module module = library->modules[n];
4585 if ( module )
4587 Destroy_Module( module );
4634 FT_Module module = FT_Get_Module( library, "truetype" );
4637 if ( module )
4643 ft_module_get_service( module,