24 #include FT_INTERNAL_DRIVER_H 25 #include FT_INTERNAL_TRUETYPE_TYPES_H 128 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 366 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 660 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 661 TT_Load_SFNT_HeaderRec_Func load_sfnt_header;
662 TT_Load_Directory_Func load_directory;
678 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 693 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 696 TT_Set_SBit_Strike_OldFunc set_sbit_strike_stub;
717 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 725 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 726 TT_CharMap_Load_Func load_charmap_stub;
727 TT_CharMap_Free_Func free_charmap_stub;
756 #ifndef FT_CONFIG_OPTION_PIC 758 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 759 #define FT_DEFINE_DRIVERS_OLD_INTERNAL( a ) \ 762 #define FT_DEFINE_DRIVERS_OLD_INTERNAL( a ) 765 #define FT_INTERNAL( a ) \ 768 #define FT_DEFINE_SFNT_INTERFACE( \ 792 set_sbit_strike_stub_, \ 795 load_sbit_metrics_, \ 800 load_charmap_stub_, \ 801 free_charmap_stub_, \ 808 load_strike_metrics_, \ 810 static const SFNT_Interface class_ = \ 812 FT_INTERNAL( goto_table_ ) \ 813 FT_INTERNAL( init_face_ ) \ 814 FT_INTERNAL( load_face_ ) \ 815 FT_INTERNAL( done_face_ ) \ 816 FT_INTERNAL( get_interface_ ) \ 817 FT_INTERNAL( load_any_ ) \ 818 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_sfnt_header_ ) \ 819 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_directory_ ) \ 820 FT_INTERNAL( load_head_ ) \ 821 FT_INTERNAL( load_hhea_ ) \ 822 FT_INTERNAL( load_cmap_ ) \ 823 FT_INTERNAL( load_maxp_ ) \ 824 FT_INTERNAL( load_os2_ ) \ 825 FT_INTERNAL( load_post_ ) \ 826 FT_INTERNAL( load_name_ ) \ 827 FT_INTERNAL( free_name_ ) \ 828 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_hdmx_stub_ ) \ 829 FT_DEFINE_DRIVERS_OLD_INTERNAL( free_hdmx_stub_ ) \ 830 FT_INTERNAL( load_kern_ ) \ 831 FT_INTERNAL( load_gasp_ ) \ 832 FT_INTERNAL( load_pclt_ ) \ 833 FT_INTERNAL( load_bhed_ ) \ 834 FT_DEFINE_DRIVERS_OLD_INTERNAL( set_sbit_strike_stub_ ) \ 835 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_sbits_stub_ ) \ 836 FT_DEFINE_DRIVERS_OLD_INTERNAL( find_sbit_image_ ) \ 837 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_sbit_metrics_ ) \ 838 FT_INTERNAL( load_sbit_image_ ) \ 839 FT_DEFINE_DRIVERS_OLD_INTERNAL( free_sbits_stub_ ) \ 840 FT_INTERNAL( get_psname_ ) \ 841 FT_INTERNAL( free_psnames_ ) \ 842 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_charmap_stub_ ) \ 843 FT_DEFINE_DRIVERS_OLD_INTERNAL( free_charmap_stub_ ) \ 844 FT_INTERNAL( get_kerning_ ) \ 845 FT_INTERNAL( load_font_dir_ ) \ 846 FT_INTERNAL( load_hmtx_ ) \ 847 FT_INTERNAL( load_eblc_ ) \ 848 FT_INTERNAL( free_eblc_ ) \ 849 FT_INTERNAL( set_sbit_strike_ ) \ 850 FT_INTERNAL( load_strike_metrics_ ) \ 851 FT_INTERNAL( get_metrics_ ) \ 856 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS 857 #define FT_DEFINE_DRIVERS_OLD_INTERNAL( a, a_ ) \ 860 #define FT_DEFINE_DRIVERS_OLD_INTERNAL( a, a_ ) 863 #define FT_INTERNAL( a, a_ ) \ 866 #define FT_DEFINE_SFNT_INTERFACE( \ 890 set_sbit_strike_stub_, \ 893 load_sbit_metrics_, \ 898 load_charmap_stub_, \ 899 free_charmap_stub_, \ 906 load_strike_metrics_, \ 909 FT_Init_Class_ ## class_( FT_Library library, \ 910 SFNT_Interface* clazz ) \ 912 FT_UNUSED( library ); \ 914 FT_INTERNAL( goto_table, goto_table_ ) \ 915 FT_INTERNAL( init_face, init_face_ ) \ 916 FT_INTERNAL( load_face, load_face_ ) \ 917 FT_INTERNAL( done_face, done_face_ ) \ 918 FT_INTERNAL( get_interface, get_interface_ ) \ 919 FT_INTERNAL( load_any, load_any_ ) \ 920 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_sfnt_header, \ 921 load_sfnt_header_ ) \ 922 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_directory, \ 924 FT_INTERNAL( load_head, load_head_ ) \ 925 FT_INTERNAL( load_hhea, load_hhea_ ) \ 926 FT_INTERNAL( load_cmap, load_cmap_ ) \ 927 FT_INTERNAL( load_maxp, load_maxp_ ) \ 928 FT_INTERNAL( load_os2, load_os2_ ) \ 929 FT_INTERNAL( load_post, load_post_ ) \ 930 FT_INTERNAL( load_name, load_name_ ) \ 931 FT_INTERNAL( free_name, free_name_ ) \ 932 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_hdmx_stub, \ 934 FT_DEFINE_DRIVERS_OLD_INTERNAL( free_hdmx_stub, \ 936 FT_INTERNAL( load_kern, load_kern_ ) \ 937 FT_INTERNAL( load_gasp, load_gasp_ ) \ 938 FT_INTERNAL( load_pclt, load_pclt_ ) \ 939 FT_INTERNAL( load_bhed, load_bhed_ ) \ 940 FT_DEFINE_DRIVERS_OLD_INTERNAL( set_sbit_strike_stub, \ 941 set_sbit_strike_stub_ ) \ 942 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_sbits_stub, \ 944 FT_DEFINE_DRIVERS_OLD_INTERNAL( find_sbit_image, \ 946 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_sbit_metrics, \ 947 load_sbit_metrics_ ) \ 948 FT_INTERNAL( load_sbit_image, load_sbit_image_ ) \ 949 FT_DEFINE_DRIVERS_OLD_INTERNAL( free_sbits_stub, \ 951 FT_INTERNAL( get_psname, get_psname_ ) \ 952 FT_INTERNAL( free_psnames, free_psnames_ ) \ 953 FT_DEFINE_DRIVERS_OLD_INTERNAL( load_charmap_stub, \ 954 load_charmap_stub_ ) \ 955 FT_DEFINE_DRIVERS_OLD_INTERNAL( free_charmap_stub, \ 956 free_charmap_stub_ ) \ 957 FT_INTERNAL( get_kerning, get_kerning_ ) \ 958 FT_INTERNAL( load_font_dir, load_font_dir_ ) \ 959 FT_INTERNAL( load_hmtx, load_hmtx_ ) \ 960 FT_INTERNAL( load_eblc, load_eblc_ ) \ 961 FT_INTERNAL( free_eblc, free_eblc_ ) \ 962 FT_INTERNAL( set_sbit_strike, set_sbit_strike_ ) \ 963 FT_INTERNAL( load_strike_metrics, load_strike_metrics_ ) \ 964 FT_INTERNAL( get_metrics, get_metrics_ ) \ GLenum GLuint GLenum GLsizei length
TT_Init_Face_Func init_face
TT_Load_Strike_Metrics_Func load_strike_metrics
SFNT_Interface * SFNT_Service
FT_Error(* TT_Load_SBit_Image_Func)(TT_Face face, FT_ULong strike_index, FT_UInt glyph_index, FT_UInt load_flags, FT_Stream stream, FT_Bitmap *amap, TT_SBit_MetricsRec *ametrics)
TT_Load_Table_Func load_maxp
TT_Free_Table_Func free_psnames
FT_Error(* TT_Loader_GotoTableFunc)(TT_Face face, FT_ULong tag, FT_Stream stream, FT_ULong *length)
TT_Get_Metrics_Func get_metrics
FT_Error(* TT_Get_Metrics_Func)(TT_Face face, FT_Bool vertical, FT_UInt gindex, FT_Short *abearing, FT_UShort *aadvance)
void(* TT_Free_Table_Func)(TT_Face face)
TT_Load_Table_Func load_os2
TT_Load_Table_Func load_head
FT_Int(* TT_Face_GetKerningFunc)(TT_Face face, FT_UInt left_glyph, FT_UInt right_glyph)
FT_Error(* TT_Get_PS_Name_Func)(TT_Face face, FT_UInt idx, FT_String **PSname)
TT_Load_Table_Func load_pclt
TT_Loader_GotoTableFunc goto_table
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLenum GLuint GLint GLenum face
TT_Done_Face_Func done_face
FT_BEGIN_HEADER typedef FT_Error(* TT_Init_Face_Func)(FT_Stream stream, TT_Face face, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
FT_Module_Interface(* FT_Module_Requester)(FT_Module module, const char *name)
TT_Load_SBit_Image_Func load_sbit_image
FT_Error(* TT_Load_SBit_Metrics_Func)(FT_Stream stream, TT_SBit_Range range, TT_SBit_Metrics metrics)
FT_Error(* TT_Load_Metrics_Func)(TT_Face face, FT_Stream stream, FT_Bool vertical)
FT_Error(* TT_Find_SBit_Image_Func)(TT_Face face, FT_UInt glyph_index, FT_ULong strike_index, TT_SBit_Range *arange, TT_SBit_Strike *astrike, FT_ULong *aglyph_offset)
TT_Load_Table_Func load_gasp
GLenum GLenum GLenum input
TT_Load_Metrics_Func load_hhea
TT_Set_SBit_Strike_Func set_sbit_strike
FT_Error(* TT_Set_SBit_Strike_Func)(TT_Face face, FT_Size_Request req, FT_ULong *astrike_index)
TT_Face_GetKerningFunc get_kerning
TT_Load_Table_Func load_post
TT_Load_Table_Func load_font_dir
TT_Load_Table_Func load_name
TT_Load_Face_Func load_face
TT_Load_Table_Func load_cmap
TT_Get_PS_Name_Func get_psname
TT_Load_Metrics_Func load_hmtx
TT_Free_Table_Func free_eblc
GLenum const GLfloat * params
TT_Load_Table_Func load_bhed
FT_Module_Requester get_interface
TT_Load_Any_Func load_any
FT_Error(* TT_Load_Strike_Metrics_Func)(TT_Face face, FT_ULong strike_index, FT_Size_Metrics *metrics)
struct SFNT_Interface_ SFNT_Interface
TT_Load_Table_Func load_eblc
FT_Error(* TT_Load_Face_Func)(FT_Stream stream, TT_Face face, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
FT_Error(* TT_Load_Any_Func)(TT_Face face, FT_ULong tag, FT_Long offset, FT_Byte *buffer, FT_ULong *length)
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
TT_Free_Table_Func free_name
void(* TT_Done_Face_Func)(TT_Face face)
TT_Load_Table_Func load_kern
FT_Error(* TT_Load_Table_Func)(TT_Face face, FT_Stream stream)