19 #ifndef __FTDRIVER_H__ 20 #define __FTDRIVER_H__ 63 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 199 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 201 FT_Size_ResetPointsFunc set_char_sizes;
202 FT_Size_ResetPixelsFunc set_pixel_sizes;
226 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 229 ft_stub_set_char_sizes(
FT_Size size,
236 ft_stub_set_pixel_sizes(
FT_Size size,
280 #ifndef FT_CONFIG_OPTION_PIC 282 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 283 #define FT_DEFINE_DRIVERS_OLD_INTERNALS( a_, b_ ) \ 286 #define FT_DEFINE_DRIVERS_OLD_INTERNALS( a_, b_ ) 289 #define FT_DECLARE_DRIVER( class_ ) \ 291 const FT_Driver_ClassRec class_; 293 #define FT_DEFINE_DRIVER( \ 313 old_set_char_sizes_, \ 314 old_set_pixel_sizes_, \ 321 FT_CALLBACK_TABLE_DEF \ 322 const FT_Driver_ClassRec class_ = \ 324 FT_DEFINE_ROOT_MODULE( flags_, \ 347 FT_DEFINE_DRIVERS_OLD_INTERNALS( old_set_char_sizes_, \ 348 old_set_pixel_sizes_ ) \ 362 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 363 #define FT_DEFINE_DRIVERS_OLD_INTERNALS( a_, b_ ) \ 364 clazz->set_char_sizes = a_; \ 365 clazz->set_pixel_sizes = b_; 367 #define FT_DEFINE_DRIVERS_OLD_INTERNALS( a_, b_ ) 370 #define FT_DECLARE_DRIVER( class_ ) FT_DECLARE_MODULE( class_ ) 372 #define FT_DEFINE_DRIVER( \ 392 old_set_char_sizes_, \ 393 old_set_pixel_sizes_, \ 401 FT_Destroy_Class_ ## class_( FT_Library library, \ 402 FT_Module_Class* clazz ) \ 404 FT_Memory memory = library->memory; \ 405 FT_Driver_Class dclazz = (FT_Driver_Class)clazz; \ 408 class_ ## _pic_free( library ); \ 415 FT_Create_Class_ ## class_( FT_Library library, \ 416 FT_Module_Class** output_class ) \ 418 FT_Driver_Class clazz = NULL; \ 420 FT_Memory memory = library->memory; \ 423 if ( FT_ALLOC( clazz, sizeof ( *clazz ) ) ) \ 426 error = class_ ## _pic_init( library ); \ 433 FT_DEFINE_ROOT_MODULE( flags_, \ 443 clazz->face_object_size = face_object_size_; \ 444 clazz->size_object_size = size_object_size_; \ 445 clazz->slot_object_size = slot_object_size_; \ 447 clazz->init_face = init_face_; \ 448 clazz->done_face = done_face_; \ 450 clazz->init_size = init_size_; \ 451 clazz->done_size = done_size_; \ 453 clazz->init_slot = init_slot_; \ 454 clazz->done_slot = done_slot_; \ 456 FT_DEFINE_DRIVERS_OLD_INTERNALS( old_set_char_sizes_, \ 457 old_set_pixel_sizes_ ) \ 459 clazz->load_glyph = load_glyph_; \ 461 clazz->get_kerning = get_kerning_; \ 462 clazz->attach_file = attach_file_; \ 463 clazz->get_advances = get_advances_; \ 465 clazz->request_size = request_size_; \ 466 clazz->select_size = select_size_; \ 468 *output_class = (FT_Module_Class*)clazz; \ GLint GLint GLsizei GLsizei height
void(* FT_Size_DoneFunc)(FT_Size size)
FT_Error(* FT_Size_RequestFunc)(FT_Size size, FT_Size_Request req)
FT_Size_InitFunc init_size
void(* FT_Face_DoneFunc)(FT_Face face)
FT_Slot_DoneFunc done_slot
FT_Error(* FT_Slot_InitFunc)(FT_GlyphSlot slot)
GLint GLint GLsizei width
FT_UInt(* FT_CharMap_CharIndexFunc)(FT_CharMap charmap, FT_Long charcode)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
FT_Error(* FT_Size_InitFunc)(FT_Size size)
GLenum GLuint GLint GLenum face
FT_Size_SelectFunc select_size
FT_Slot_InitFunc init_slot
void(* FT_Slot_DoneFunc)(FT_GlyphSlot slot)
FT_Face_GetKerningFunc get_kerning
FT_BEGIN_HEADER typedef FT_Error(* FT_Face_InitFunc)(FT_Stream stream, FT_Face face, FT_Int typeface_index, FT_Int num_params, FT_Parameter *parameters)
FT_Size_DoneFunc done_size
FT_Slot_LoadFunc load_glyph
FT_Error(* FT_Face_AttachFunc)(FT_Face face, FT_Stream stream)
FT_Size_RequestFunc request_size
FT_Long(* FT_CharMap_CharNextFunc)(FT_CharMap charmap, FT_Long charcode)
FT_Error(* FT_Face_GetAdvancesFunc)(FT_Face face, FT_UInt first, FT_UInt count, FT_Int32 flags, FT_Fixed *advances)
FT_Face_DoneFunc done_face
FT_Face_AttachFunc attach_file
FT_Face_GetAdvancesFunc get_advances
FT_Error(* FT_Face_GetKerningFunc)(FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_Vector *kerning)
struct FT_Driver_ClassRec_ * FT_Driver_Class
FT_Face_InitFunc init_face
FT_Error(* FT_Slot_LoadFunc)(FT_GlyphSlot slot, FT_Size size, FT_UInt glyph_index, FT_Int32 load_flags)
GLuint GLuint GLsizei count
struct FT_Driver_ClassRec_ FT_Driver_ClassRec
FT_Error(* FT_Size_SelectFunc)(FT_Size size, FT_ULong size_index)