Changeset 267

Show
Ignore:
Timestamp:
07/24/07 11:55:22 (1 year ago)
Author:
aldacron
Message:

[DerelictFT]
* removed the DerelictFT_Static versioning that should have been zapped before
[DerelictGL]
* updated the special GL loader with the loaded & libName properties
[DerelictUtil?]
* removed a bunch of unused code from loader.d
* added two properties to GenericLoader? & GenericDependentLoader?: loaded & libName

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/DerelictFT/derelict/freetype/ftfuncs.d

    r263 r267  
    3232module derelict.freetype.ftfuncs; 
    3333 
    34 version(DerelictFT_Static) 
     34 
     35private 
    3536{ 
    36     private 
    37     { 
    38         import derelict.util.loader; 
    39     } 
    40  
    41     GenericStaticLoader DerelictFT; 
    42  
    43     static this() { 
    44         DerelictFT.setup(); 
    45     } 
     37    import derelict.freetype.fttypes; 
     38    import derelict.util.loader; 
    4639} 
    47 else 
     40 
     41package void loadFT(SharedLib lib) 
    4842{ 
    49     private 
    50     { 
    51         import derelict.freetype.fttypes; 
    52         import derelict.util.loader; 
    53     } 
    54  
    55     package void loadFT(SharedLib lib) 
    56     { 
    57         // FreeType functions 
    58         bindFunc(FT_Init_FreeType)("FT_Init_FreeType", lib); 
    59         bindFunc(FT_Library_Version)("FT_Library_Version", lib); 
    60         bindFunc(FT_Done_FreeType)("FT_Done_FreeType", lib); 
    61         bindFunc(FT_New_Face)("FT_New_Face", lib); 
    62         bindFunc(FT_New_Memory_Face)("FT_New_Memory_Face", lib); 
    63         bindFunc(FT_Open_Face)("FT_Open_Face", lib); 
    64         bindFunc(FT_Attach_File)("FT_Attach_File", lib); 
    65         bindFunc(FT_Attach_Stream)("FT_Attach_Stream", lib); 
    66         bindFunc(FT_Done_Face)("FT_Done_Face", lib); 
    67         bindFunc(FT_Set_Char_Size)("FT_Set_Char_Size", lib); 
    68         bindFunc(FT_Set_Pixel_Sizes)("FT_Set_Pixel_Sizes", lib); 
    69         bindFunc(FT_Load_Glyph)("FT_Load_Glyph", lib); 
    70         bindFunc(FT_Load_Char)("FT_Load_Char", lib); 
    71         bindFunc(FT_Set_Transform)("FT_Set_Transform", lib); 
    72         bindFunc(FT_Render_Glyph)("FT_Render_Glyph", lib); 
    73         bindFunc(FT_Get_Kerning)("FT_Get_Kerning", lib); 
    74         bindFunc(FT_Get_Glyph_Name)("FT_Get_Glyph_Name", lib); 
    75         bindFunc(FT_Get_Postscript_Name)("FT_Get_Postscript_Name", lib); 
    76         bindFunc(FT_Select_Charmap)("FT_Select_Charmap", lib); 
    77         bindFunc(FT_Set_Charmap)("FT_Set_Charmap", lib); 
    78         bindFunc(FT_Get_Charmap_Index)("FT_Get_Charmap_Index", lib); 
    79         bindFunc(FT_Get_Char_Index)("FT_Get_Char_Index", lib); 
    80         bindFunc(FT_Get_First_Char)("FT_Get_First_Char", lib); 
    81         bindFunc(FT_Get_Next_Char)("FT_Get_Next_Char", lib); 
    82         bindFunc(FT_Get_Name_Index)("FT_Get_Name_Index", lib); 
    83         bindFunc(FT_MulDiv)("FT_MulDiv", lib); 
    84         bindFunc(FT_MulFix)("FT_MulFix", lib); 
    85         bindFunc(FT_DivFix)("FT_DivFix", lib); 
    86         bindFunc(FT_RoundFix)("FT_RoundFix", lib); 
    87         bindFunc(FT_CeilFix)("FT_CeilFix", lib); 
    88         bindFunc(FT_FloorFix)("FT_FloorFix", lib); 
    89         bindFunc(FT_Vector_Transform)("FT_Vector_Transform", lib); 
    90         bindFunc(FT_List_Find)("FT_List_Find", lib); 
    91         bindFunc(FT_List_Add)("FT_List_Add", lib); 
    92         bindFunc(FT_List_Insert)("FT_List_Insert", lib); 
    93         bindFunc(FT_List_Remove)("FT_List_Remove", lib); 
    94         bindFunc(FT_List_Up)("FT_List_Up", lib); 
    95         bindFunc(FT_List_Iterate)("FT_List_Iterate", lib); 
    96         bindFunc(FT_List_Finalize)("FT_List_Finalize", lib); 
    97         bindFunc(FT_Outline_Decompose)("FT_Outline_Decompose", lib); 
    98         bindFunc(FT_Outline_New)("FT_Outline_New", lib); 
    99         bindFunc(FT_Outline_New_Internal)("FT_Outline_New_Internal", lib); 
    100         bindFunc(FT_Outline_Done)("FT_Outline_Done", lib); 
    101         bindFunc(FT_Outline_Done_Internal)("FT_Outline_Done_Internal", lib); 
    102         bindFunc(FT_Outline_Check)("FT_Outline_Check", lib); 
    103         bindFunc(FT_Outline_Get_CBox)("FT_Outline_Get_CBox", lib); 
    104         bindFunc(FT_Outline_Translate)("FT_Outline_Translate", lib); 
    105         bindFunc(FT_Outline_Copy)("FT_Outline_Copy", lib); 
    106         bindFunc(FT_Outline_Transform)("FT_Outline_Transform", lib); 
    107         bindFunc(FT_Outline_Embolden)("FT_Outline_Embolden", lib); 
    108         bindFunc(FT_Outline_Reverse)("FT_Outline_Reverse", lib); 
    109         bindFunc(FT_Outline_Get_Bitmap)("FT_Outline_Get_Bitmap", lib); 
    110         bindFunc(FT_Outline_Render)("FT_Outline_Render", lib); 
    111         bindFunc(FT_Outline_Get_Orientation)("FT_Outline_Get_Orientation", lib); 
    112         bindFunc(FT_New_Size)("FT_New_Size", lib); 
    113         bindFunc(FT_Done_Size)("FT_Done_Size", lib); 
    114         bindFunc(FT_Activate_Size)("FT_Activate_Size", lib); 
    115         bindFunc(FT_Add_Module)("FT_Add_Module", lib); 
    116         bindFunc(FT_Get_Module)("FT_Get_Module", lib); 
    117         bindFunc(FT_Remove_Module)("FT_Remove_Module", lib); 
    118         bindFunc(FT_New_Library)("FT_New_Library", lib); 
    119         bindFunc(FT_Done_Library)("FT_Done_Library", lib); 
    120         bindFunc(FT_Set_Debug_Hook)("FT_Set_Debug_Hook", lib); 
    121         bindFunc(FT_Add_Default_Modules)("FT_Add_Default_Modules", lib); 
    122         bindFunc(FT_Get_Glyph)("FT_Get_Glyph", lib); 
    123         bindFunc(FT_Glyph_Copy)("FT_Glyph_Copy", lib); 
    124         bindFunc(FT_Glyph_Transform)("FT_Glyph_Transform", lib); 
    125         bindFunc(FT_Glyph_Get_CBox)("FT_Glyph_Get_CBox", lib); 
    126         bindFunc(FT_Glyph_To_Bitmap)("FT_Glyph_To_Bitmap", lib); 
    127         bindFunc(FT_Done_Glyph)("FT_Done_Glyph", lib); 
    128         bindFunc(FT_Matrix_Multiply)("FT_Matrix_Multiply", lib); 
    129         bindFunc(FT_Matrix_Invert)("FT_Matrix_Invert", lib); 
    130         bindFunc(FT_Get_Renderer)("FT_Get_Renderer", lib); 
    131         bindFunc(FT_Set_Renderer)("FT_Set_Renderer", lib); 
    132         bindFunc(FT_Has_PS_Glyph_Names)("FT_Has_PS_Glyph_Names", lib); 
    133         bindFunc(FT_Get_PS_Font_Info)("FT_Get_PS_Font_Info", lib); 
    134         bindFunc(FT_Get_PS_Font_Private)("FT_Get_PS_Font_Private", lib); 
    135         bindFunc(FT_Get_Sfnt_Table)("FT_Get_Sfnt_Table", lib); 
    136         bindFunc(FT_Load_Sfnt_Table)("FT_Load_Sfnt_Table", lib); 
    137         bindFunc(FT_Sfnt_Table_Info)("FT_Sfnt_Table_Info", lib); 
    138         bindFunc(FT_Get_CMap_Language_ID)("FT_Get_CMap_Language_ID", lib); 
    139         bindFunc(FT_Get_BDF_Charset_ID)("FT_Get_BDF_Charset_ID", lib); 
    140         bindFunc(FT_Get_BDF_Property)("FT_Get_BDF_Property", lib); 
    141         bindFunc(FT_Stream_OpenGzip)("FT_Stream_OpenGzip", lib); 
    142         bindFunc(FT_Stream_OpenLZW)("FT_Stream_OpenLZW", lib); 
    143         bindFunc(FT_Get_WinFNT_Header)("FT_Get_WinFNT_Header", lib); 
    144         bindFunc(FT_Bitmap_New)("FT_Bitmap_New", lib); 
    145         bindFunc(FT_Bitmap_Copy)("FT_Bitmap_Copy", lib); 
    146         bindFunc(FT_Bitmap_Embolden)("FT_Bitmap_Embolden", lib); 
    147         bindFunc(FT_Bitmap_Convert)("FT_Bitmap_Convert", lib); 
    148         bindFunc(FT_Bitmap_Done)("FT_Bitmap_Done", lib); 
    149         bindFunc(FT_Outline_Get_BBox)("FT_Outline_Get_BBox", lib); 
    150         bindFunc(FTC_Manager_New)("FTC_Manager_New", lib); 
    151         bindFunc(FTC_Manager_Reset)("FTC_Manager_Reset", lib); 
    152         bindFunc(FTC_Manager_Done)("FTC_Manager_Done", lib); 
    153         bindFunc(FTC_Manager_LookupFace)("FTC_Manager_LookupFace", lib); 
    154         bindFunc(FTC_Manager_LookupSize)("FTC_Manager_LookupSize", lib); 
    155         bindFunc(FTC_Node_Unref)("FTC_Node_Unref", lib); 
    156         bindFunc(FTC_Manager_RemoveFaceID)("FTC_Manager_RemoveFaceID", lib); 
    157         bindFunc(FTC_CMapCache_New)("FTC_CMapCache_New", lib); 
    158         bindFunc(FTC_CMapCache_Lookup)("FTC_CMapCache_Lookup", lib); 
    159         bindFunc(FTC_ImageCache_New)("FTC_ImageCache_New", lib); 
    160         bindFunc(FTC_ImageCache_Lookup)("FTC_ImageCache_Lookup", lib); 
    161         bindFunc(FTC_SBitCache_New)("FTC_SBitCache_New", lib); 
    162         bindFunc(FTC_SBitCache_Lookup)("FTC_SBitCache_Lookup", lib); 
    163         bindFunc(FT_Get_Multi_Master)("FT_Get_Multi_Master", lib); 
    164         bindFunc(FT_Get_MM_Var)("FT_Get_MM_Var", lib); 
    165         bindFunc(FT_Set_MM_Design_Coordinates)("FT_Set_MM_Design_Coordinates", lib); 
    166         bindFunc(FT_Set_Var_Design_Coordinates)("FT_Set_Var_Design_Coordinates", lib); 
    167         bindFunc(FT_Set_MM_Blend_Coordinates)("FT_Set_MM_Blend_Coordinates", lib); 
    168         bindFunc(FT_Set_Var_Blend_Coordinates)("FT_Set_Var_Blend_Coordinates", lib); 
    169         bindFunc(FT_Get_Sfnt_Name_Count)("FT_Get_Sfnt_Name_Count", lib); 
    170         bindFunc(FT_Get_Sfnt_Name)("FT_Get_Sfnt_Name", lib); 
    171         bindFunc(FT_OpenType_Validate)("FT_OpenType_Validate", lib); 
    172         bindFunc(FT_Sin)("FT_Sin", lib); 
    173         bindFunc(FT_Cos)("FT_Cos", lib); 
    174         bindFunc(FT_Tan)("FT_Tan", lib); 
    175         bindFunc(FT_Angle_Diff)("FT_Angle_Diff", lib); 
    176         bindFunc(FT_Vector_Unit)("FT_Vector_Unit", lib); 
    177         bindFunc(FT_Vector_Rotate)("FT_Vector_Rotate", lib); 
    178         bindFunc(FT_Vector_Length)("FT_Vector_Length", lib); 
    179         bindFunc(FT_Vector_Polarize)("FT_Vector_Polarize", lib); 
    180         bindFunc(FT_Vector_From_Polar)("FT_Vector_From_Polar", lib); 
    181         bindFunc(FT_Outline_GetInsideBorder)("FT_Outline_GetInsideBorder", lib); 
    182         bindFunc(FT_Outline_GetOutsideBorder)("FT_Outline_GetOutsideBorder", lib); 
    183         bindFunc(FT_Stroker_New)("FT_Stroker_New", lib); 
    184         bindFunc(FT_Stroker_Set)("FT_Stroker_Set", lib); 
    185         bindFunc(FT_Stroker_Rewind)("FT_Stroker_Rewind", lib); 
    186         bindFunc(FT_Stroker_ParseOutline)("FT_Stroker_ParseOutline", lib); 
    187         bindFunc(FT_Stroker_BeginSubPath)("FT_Stroker_BeginSubPath", lib); 
    188         bindFunc(FT_Stroker_EndSubPath)("FT_Stroker_EndSubPath", lib); 
    189         bindFunc(FT_Stroker_LineTo)("FT_Stroker_LineTo", lib); 
    190         bindFunc(FT_Stroker_ConicTo)("FT_Stroker_ConicTo", lib); 
    191         bindFunc(FT_Stroker_CubicTo)("FT_Stroker_CubicTo", lib); 
    192         bindFunc(FT_Stroker_GetBorderCounts)("FT_Stroker_GetBorderCounts", lib); 
    193         bindFunc(FT_Stroker_ExportBorder)("FT_Stroker_ExportBorder", lib); 
    194         bindFunc(FT_Stroker_GetCounts)("FT_Stroker_GetCounts", lib); 
    195         bindFunc(FT_Stroker_Export)("FT_Stroker_Export", lib); 
    196         bindFunc(FT_Stroker_Done)("FT_Stroker_Done", lib); 
    197         bindFunc(FT_Glyph_Stroke)("FT_Glyph_Stroke", lib); 
    198         bindFunc(FT_Glyph_StrokeBorder)("FT_Glyph_StrokeBorder", lib); 
    199         bindFunc(FT_GlyphSlot_Embolden)("FT_GlyphSlot_Embolden", lib); 
    200         bindFunc(FT_GlyphSlot_Oblique)("FT_GlyphSlot_Oblique", lib); 
    201         bindFunc(FT_Library_SetLcdFilter)("FT_Library_SetLcdFilter", lib); 
    202         bindFunc(FTC_MruNode_Prepend)("FTC_MruNode_Prepend", lib); 
    203         bindFunc(FTC_MruNode_Up)("FTC_MruNode_Up", lib); 
    204         bindFunc(FTC_MruNode_Remove)("FTC_MruNode_Remove", lib); 
    205         bindFunc(FTC_MruList_Init)("FTC_MruList_Init", lib); 
    206         bindFunc(FTC_MruList_Reset)("FTC_MruList_Reset", lib); 
    207         bindFunc(FTC_MruList_Done)("FTC_MruList_Done", lib); 
    208         bindFunc(FTC_MruList_Find)("FTC_MruList_Find", lib); 
    209         bindFunc(FTC_MruList_New)("FTC_MruList_New", lib); 
    210         bindFunc(FTC_MruList_Lookup)("FTC_MruList_Lookup", lib); 
    211         bindFunc(FTC_MruList_Remove)("FTC_MruList_Remove", lib); 
    212         bindFunc(FTC_MruList_RemoveSelection)("FTC_MruList_RemoveSelection", lib); 
    213         bindFunc(ftc_node_destroy)("ftc_node_destroy", lib); 
    214         bindFunc(FTC_Cache_Init)("FTC_Cache_Init", lib); 
    215         bindFunc(FTC_Cache_Done)("FTC_Cache_Done", lib); 
    216         bindFunc(FTC_Cache_Lookup)("FTC_Cache_Lookup", lib); 
    217         bindFunc(FTC_Cache_NewNode)("FTC_Cache_NewNode", lib); 
    218         bindFunc(FTC_Cache_RemoveFaceID)("FTC_Cache_RemoveFaceID", lib); 
    219         bindFunc(FTC_Manager_Compress)("FTC_Manager_Compress", lib); 
    220         bindFunc(FTC_Manager_FlushN)("FTC_Manager_FlushN", lib); 
    221         bindFunc(FTC_Manager_RegisterCache)("FTC_Manager_RegisterCache", lib); 
    222         bindFunc(FTC_GNode_Init)("FTC_GNode_Init", lib); 
    223         bindFunc(FTC_GNode_Compare)("FTC_GNode_Compare", lib); 
    224         bindFunc(FTC_GNode_UnselectFamily)("FTC_GNode_UnselectFamily", lib); 
    225         bindFunc(FTC_GNode_Done)("FTC_GNode_Done", lib); 
    226         bindFunc(FTC_Family_Init)("FTC_Family_Init", lib); 
    227         bindFunc(FTC_GCache_Init)("FTC_GCache_Init", lib); 
    228         bindFunc(FTC_GCache_Done)("FTC_GCache_Done", lib); 
    229         bindFunc(FTC_GCache_New)("FTC_GCache_New", lib); 
    230         bindFunc(FTC_GCache_Lookup)("FTC_GCache_Lookup", lib); 
    231         bindFunc(FTC_INode_Free)("FTC_INode_Free", lib); 
    232         bindFunc(FTC_INode_New)("FTC_INode_New", lib); 
    233         bindFunc(FTC_INode_Weight)("FTC_INode_Weight", lib); 
    234         bindFunc(FTC_SNode_Free)("FTC_SNode_Free", lib); 
    235         bindFunc(FTC_SNode_New)("FTC_SNode_New", lib); 
    236         bindFunc(FTC_SNode_Weight)("FTC_SNode_Weight", lib); 
    237         bindFunc(FTC_SNode_Compare)("FTC_SNode_Compare", lib); 
    238         bindFunc(FT_Get_X11_Font_Format)("FT_Get_X11_Font_Format", lib); 
    239         bindFunc(FT_Alloc)("FT_Alloc", lib); 
    240         bindFunc(FT_QAlloc)("FT_QAlloc", lib); 
    241         bindFunc(FT_Realloc)("FT_Realloc", lib); 
    242         bindFunc(FT_QRealloc)("FT_QRealloc", lib); 
    243         bindFunc(FT_Free)("FT_Free", lib); 
    244         bindFunc(FT_GlyphLoader_New)("FT_GlyphLoader_New", lib); 
    245         bindFunc(FT_GlyphLoader_CreateExtra)("FT_GlyphLoader_CreateExtra", lib); 
    246         bindFunc(FT_GlyphLoader_Done)("FT_GlyphLoader_Done", lib); 
    247         bindFunc(FT_GlyphLoader_Reset)("FT_GlyphLoader_Reset", lib); 
    248         bindFunc(FT_GlyphLoader_Rewind)("FT_GlyphLoader_Rewind", lib); 
    249         bindFunc(FT_GlyphLoader_CheckPoints)("FT_GlyphLoader_CheckPoints", lib); 
    250         bindFunc(FT_GlyphLoader_CheckSubGlyphs)("FT_GlyphLoader_CheckSubGlyphs", lib); 
    251         bindFunc(FT_GlyphLoader_Prepare)("FT_GlyphLoader_Prepare", lib); 
    252         bindFunc(FT_GlyphLoader_Add)("FT_GlyphLoader_Add", lib); 
    253         bindFunc(FT_GlyphLoader_CopyPoints)("FT_GlyphLoader_CopyPoints", lib); 
    254         bindFunc(ft_service_list_lookup)("ft_service_list_lookup", lib); 
    255         bindFunc(FT_CMap_New)("FT_CMap_New", lib); 
    256         bindFunc(FT_CMap_Done)("FT_CMap_Done", lib); 
    257         bindFunc(FT_Get_Module_Interface)("FT_Get_Module_Interface", lib); 
    258         bindFunc(ft_module_get_service)("ft_module_get_service", lib); 
    259         bindFunc(FT_New_GlyphSlot)("FT_New_GlyphSlot", lib); 
    260         bindFunc(FT_Done_GlyphSlot)("FT_Done_GlyphSlot", lib); 
    261         bindFunc(ft_glyphslot_free_bitmap)("ft_glyphslot_free_bitmap", lib); 
    262         bindFunc(ft_glyphslot_alloc_bitmap)("ft_glyphslot_alloc_bitmap", lib); 
    263         bindFunc(ft_glyphslot_set_bitmap)("ft_glyphslot_set_bitmap", lib); 
    264         bindFunc(FT_Lookup_Renderer)("FT_Lookup_Renderer", lib); 
    265         bindFunc(FT_Render_Glyph_Internal)("FT_Render_Glyph_Internal", lib); 
    266         bindFunc(FT_New_Memory)("FT_New_Memory", lib); 
    267         bindFunc(FT_Done_Memory)("FT_Done_Memory", lib); 
    268         bindFunc(FT_Stream_Open)("FT_Stream_Open", lib); 
    269         bindFunc(FT_Stream_New)("FT_Stream_New", lib); 
    270         bindFunc(FT_Stream_Free)("FT_Stream_Free", lib); 
    271         bindFunc(FT_Stream_OpenMemory)("FT_Stream_OpenMemory", lib); 
    272         bindFunc(FT_Stream_Close)("FT_Stream_Close", lib); 
    273         bindFunc(FT_Stream_Seek)("FT_Stream_Seek", lib); 
    274         bindFunc(FT_Stream_Skip)("FT_Stream_Skip", lib); 
    275         bindFunc(FT_Stream_Pos)("FT_Stream_Pos", lib); 
    276         bindFunc(FT_Stream_Read)("FT_Stream_Read", lib); 
    277         bindFunc(FT_Stream_ReadAt)("FT_Stream_ReadAt", lib); 
    278         bindFunc(FT_Stream_TryRead)("FT_Stream_TryRead", lib); 
    279         bindFunc(FT_Stream_EnterFrame)("FT_Stream_EnterFrame", lib); 
    280         bindFunc(FT_Stream_ExitFrame)("FT_Stream_ExitFrame", lib); 
    281         bindFunc(FT_Stream_ExtractFrame)("FT_Stream_ExtractFrame", lib); 
    282         bindFunc(FT_Stream_ReleaseFrame)("FT_Stream_ReleaseFrame", lib); 
    283         bindFunc(FT_Stream_GetChar)("FT_Stream_GetChar", lib); 
    284         bindFunc(FT_Stream_GetShort)("FT_Stream_GetShort", lib); 
    285         bindFunc(FT_Stream_GetOffset)("FT_Stream_GetOffset", lib); 
    286         bindFunc(FT_Stream_GetLong)("FT_Stream_GetLong", lib); 
    287         bindFunc(FT_Stream_GetShortLE)("FT_Stream_GetShortLE", lib); 
    288         bindFunc(FT_Stream_GetLongLE)("FT_Stream_GetLongLE", lib); 
    289         bindFunc(FT_Stream_ReadChar)("FT_Stream_ReadChar", lib); 
    290         bindFunc(FT_Stream_ReadShort)("FT_Stream_ReadShort", lib); 
    291         bindFunc(FT_Stream_ReadOffset)("FT_Stream_ReadOffset", lib); 
    292         bindFunc(FT_Stream_ReadLong)("FT_Stream_ReadLong", lib); 
    293         bindFunc(FT_Stream_ReadShortLE)("FT_Stream_ReadShortLE", lib); 
    294         bindFunc(FT_Stream_ReadLongLE)("FT_Stream_ReadLongLE", lib); 
    295         bindFunc(FT_Stream_ReadFields)("FT_Stream_ReadFields", lib); 
    296         bindFunc(FT_Trace_Get_Count)("FT_Trace_Get_Count", lib); 
    297         bindFunc(FT_Trace_Get_Name)("FT_Trace_Get_Name", lib); 
    298         bindFunc(ft_debug_init)("ft_debug_init", lib); 
    299         bindFunc(FT_SqrtFixed)("FT_SqrtFixed", lib); 
    300         bindFunc(FT_Raccess_Guess)("FT_Raccess_Guess", lib); 
    301         bindFunc(FT_Raccess_Get_HeaderInfo)("FT_Raccess_Get_HeaderInfo", lib); 
    302         bindFunc(FT_Raccess_Get_DataOffsets)("FT_Raccess_Get_DataOffsets", lib); 
    303         bindFunc(ft_validator_init)("ft_validator_init", lib); 
    304         bindFunc(ft_validator_run)("ft_validator_run", lib); 
    305         bindFunc(ft_validator_error)("ft_validator_error", lib); 
    306     } 
    307  
    308     GenericLoader DerelictFT; 
    309     static this() { 
    310         DerelictFT.setup( 
    311             "freetype.dll", 
    312             "libfreetype.so", 
    313             "", 
    314             &loadFT, 
    315             "2.1.10" 
    316         ); 
    317     } 
    318  
    319  
    320     // C calling convention for BOTH linux and Windows 
    321     extern(C): 
    322  
    323     typedef FT_Error function( FT_Library *alibrary ) pfFT_Init_FreeType; 
    324     typedef void function( FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch ) pfFT_Library_Version; 
    325     typedef FT_Error function( FT_Library library ) pfFT_Done_FreeType; 
    326     typedef FT_Error function( FT_Library library, char* filepathname, FT_Long face_index, FT_Face *aface ) pfFT_New_Face; 
    327     typedef FT_Error function( FT_Library library, FT_Byte* file_base, FT_Long file_size, FT_Long face_index, FT_Face *aface ) pfFT_New_Memory_Face; 
    328     typedef FT_Error function( FT_Library library, FT_Open_Args* args, FT_Long face_index, FT_Face *aface ) pfFT_Open_Face; 
    329     typedef FT_Error function( FT_Face face, char* filepathname ) pfFT_Attach_File; 
    330     typedef FT_Error function( FT_Face face, FT_Open_Args* parameters ) pfFT_Attach_Stream; 
    331     typedef FT_Error function( FT_Face face ) pfFT_Done_Face; 
    332     typedef FT_Error function( FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution ) pfFT_Set_Char_Size; 
    333     typedef FT_Error function( FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height ) pfFT_Set_Pixel_Sizes; 
    334     typedef FT_Error function( FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags ) pfFT_Load_Glyph; 
    335     typedef FT_Error function( FT_Face face, FT_ULong char_code, FT_Int32 load_flags ) pfFT_Load_Char; 
    336     typedef void function( FT_Face face, FT_Matrix* matrix, FT_Vector* delta ) pfFT_Set_Transform; 
    337     typedef FT_Error function( FT_GlyphSlot slot, FT_Render_Mode render_mode ) pfFT_Render_Glyph; 
    338     typedef FT_Error function( FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning ) pfFT_Get_Kerning; 
    339     typedef FT_Error function( FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max ) pfFT_Get_Glyph_Name; 
    340     typedef char* function( FT_Face face ) pfFT_Get_Postscript_Name; 
    341     typedef FT_Error function( FT_Face face, FT_Encoding encoding ) pfFT_Select_Charmap; 
    342     typedef FT_Error function( FT_Face face, FT_CharMap charmap ) pfFT_Set_Charmap; 
    343     typedef FT_Int function( FT_CharMap charmap ) pfFT_Get_Charmap_Index; 
    344     typedef FT_UInt function( FT_Face face, FT_ULong charcode ) pfFT_Get_Char_Index; 
    345     typedef FT_ULong function( FT_Face face, FT_UInt *agindex ) pfFT_Get_First_Char; 
    346     typedef FT_ULong function( FT_Face face, FT_ULong char_code, FT_UInt *agindex ) pfFT_Get_Next_Char; 
    347     typedef FT_UInt function( FT_Face face, FT_String* glyph_name ) pfFT_Get_Name_Index; 
    348     typedef FT_Long function( FT_Long a, FT_Long b, FT_Long c ) pfFT_MulDiv; 
    349     typedef FT_Long function( FT_Long a, FT_Long b ) pfFT_MulFix; 
    350     typedef FT_Long function( FT_Long a, FT_Long b ) pfFT_DivFix; 
    351     typedef FT_Fixed function( FT_Fixed a ) pfFT_RoundFix; 
    352     typedef FT_Fixed function( FT_Fixed a ) pfFT_CeilFix; 
    353     typedef FT_Fixed function( FT_Fixed a ) pfFT_FloorFix; 
    354     typedef void function( FT_Vector* vec, FT_Matrix* matrix ) pfFT_Vector_Transform; 
    355     typedef FT_ListNode function( FT_List list, void* data ) pfFT_List_Find; 
    356     typedef void function( FT_List list, FT_ListNode node ) pfFT_List_Add; 
    357     typedef void function( FT_List list, FT_ListNode node ) pfFT_List_Insert; 
    358     typedef void function( FT_List list, FT_ListNode node ) pfFT_List_Remove; 
    359     typedef void function( FT_List list, FT_ListNode node ) pfFT_List_Up; 
    360     typedef FT_Error function( FT_List list, FT_List_Iterator iterator, void* user ) pfFT_List_Iterate; 
    361     typedef void function( FT_List list, FT_List_Destructor destroy, FT_Memory memory, void* user ) pfFT_List_Finalize; 
    362     typedef FT_Error function( FT_Outline* outline, FT_Outline_Funcs* func_interface, void* user ) pfFT_Outline_Decompose; 
    363     typedef FT_Error function( FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline ) pfFT_Outline_New; 
    364     typedef FT_Error function( FT_Memory memory, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline ) pfFT_Outline_New_Internal; 
    365     typedef FT_Error function( FT_Library library, FT_Outline* outline ) pfFT_Outline_Done; 
    366     typedef FT_Error function( FT_Memory memory, FT_Outline* outline ) pfFT_Outline_Done_Internal; 
    367     typedef FT_Error function( FT_Outline* outline ) pfFT_Outline_Check; 
    368     typedef void function( FT_Outline* outline, FT_BBox *acbox ) pfFT_Outline_Get_CBox; 
    369     typedef void function( FT_Outline* outline, FT_Pos xOffset, FT_Pos yOffset ) pfFT_Outline_Translate; 
    370     typedef FT_Error function( FT_Outline* source, FT_Outline *target ) pfFT_Outline_Copy; 
    371     typedef void function( FT_Outline* outline, FT_Matrix* matrix ) pfFT_Outline_Transform; 
    372     typedef FT_Error function( FT_Outline* outline, FT_Pos strength ) pfFT_Outline_Embolden; 
    373     typedef void function( FT_Outline* outline ) pfFT_Outline_Reverse; 
    374     typedef FT_Error function( FT_Library library, FT_Outline* outline, FT_Bitmap *abitmap ) pfFT_Outline_Get_Bitmap; 
    375     typedef FT_Error function( FT_Library library, FT_Outline* outline, FT_Raster_Params* params ) pfFT_Outline_Render; 
    376     typedef FT_Orientation function( FT_Outline* outline ) pfFT_Outline_Get_Orientation; 
    377     typedef FT_Error function( FT_Face face, FT_Size* size ) pfFT_New_Size; 
    378     typedef FT_Error function( FT_Size size ) pfFT_Done_Size; 
    379     typedef FT_Error function( FT_Size size ) pfFT_Activate_Size; 
    380     typedef FT_Error function( FT_Library library, FT_Module_Class* clazz ) pfFT_Add_Module; 
    381     typedef FT_Module function( FT_Library library, char* module_name ) pfFT_Get_Module; 
    382     typedef FT_Error function( FT_Library library, FT_Module mod ) pfFT_Remove_Module; 
    383     typedef FT_Error function( FT_Memory memory, FT_Library *alibrary ) pfFT_New_Library; 
    384     typedef FT_Error function( FT_Library library ) pfFT_Done_Library; 
    385     typedef void function( FT_Library library, FT_UInt hook_index, FT_DebugHook_Func debug_hook ) pfFT_Set_Debug_Hook; 
    386     typedef void function( FT_Library library ) pfFT_Add_Default_Modules; 
    387     typedef FT_Error function( FT_GlyphSlot slot, FT_Glyph *aglyph ) pfFT_Get_Glyph; 
    388     typedef FT_Error function( FT_Glyph source, FT_Glyph *target ) pfFT_Glyph_Copy; 
    389     typedef FT_Error function( FT_Glyph glyph, FT_Matrix* matrix, FT_Vector* delta ) pfFT_Glyph_Transform; 
    390     typedef void function( FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox *acbox ) pfFT_Glyph_Get_CBox; 
    391     typedef FT_Error function( FT_Glyph* the_glyph, FT_Render_Mode render_mode, FT_Vector* origin, FT_Bool destroy ) pfFT_Glyph_To_Bitmap; 
    392     typedef void function( FT_Glyph glyph ) pfFT_Done_Glyph; 
    393     typedef void function( FT_Matrix* a, FT_Matrix* b ) pfFT_Matrix_Multiply; 
    394     typedef FT_Error function( FT_Matrix* matrix ) pfFT_Matrix_Invert; 
    395     typedef FT_Renderer function( FT_Library library, FT_Glyph_Format format ) pfFT_Get_Renderer; 
    396     typedef FT_Error function( FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter* parameters ) pfFT_Set_Renderer; 
    397     typedef FT_Int function( FT_Face face ) pfFT_Has_PS_Glyph_Names; 
    398     typedef FT_Error function( FT_Face face, PS_FontInfoRec *afont_info ) pfFT_Get_PS_Font_Info; 
    399     typedef FT_Error function( FT_Face face, PS_PrivateRec *afont_private ) pfFT_Get_PS_Font_Private; 
    400     typedef void* function( FT_Face face, FT_Sfnt_Tag tag ) pfFT_Get_Sfnt_Table; 
    401     typedef FT_Error function( FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte* buffer, FT_ULong* length ) pfFT_Load_Sfnt_Table; 
    402     typedef FT_Error function( FT_Face face, FT_UInt table_index, FT_ULong *tag, FT_ULong *length ) pfFT_Sfnt_Table_Info; 
    403     typedef FT_ULong function( FT_CharMap charmap ) pfFT_Get_CMap_Language_ID; 
    404     typedef FT_Error function( FT_Face face, char* *acharset_encoding, char* *acharset_registry ) pfFT_Get_BDF_Charset_ID; 
    405     typedef FT_Error function( FT_Face face, char* prop_name, BDF_PropertyRec *aproperty ) pfFT_Get_BDF_Property; 
    406     typedef FT_Error function( FT_Stream stream, FT_Stream source ) pfFT_Stream_OpenGzip; 
    407     typedef FT_Error function( FT_Stream stream, FT_Stream source ) pfFT_Stream_OpenLZW; 
    408     typedef FT_Error function( FT_Face face, FT_WinFNT_HeaderRec *aheader ) pfFT_Get_WinFNT_Header; 
    409     typedef void function( FT_Bitmap *abitmap ) pfFT_Bitmap_New; 
    410     typedef FT_Error function( FT_Library library, FT_Bitmap *source, FT_Bitmap *target) pfFT_Bitmap_Copy; 
    411     typedef FT_Error function( FT_Library library, FT_Bitmap* bitmap, FT_Pos xStrength, FT_Pos yStrength ) pfFT_Bitmap_Embolden; 
    412     typedef FT_Error function( FT_Library library, FT_Bitmap *source, FT_Bitmap *target, FT_Int alignment ) pfFT_Bitmap_Convert; 
    413     typedef FT_Error function( FT_Library library, FT_Bitmap *bitmap ) pfFT_Bitmap_Done; 
    414     typedef FT_Error function( FT_Outline* outline, FT_BBox *abbox ) pfFT_Outline_Get_BBox; 
    415     typedef FT_Error function( FT_Library library, FT_UInt max_faces, FT_UInt max_sizes, FT_ULong max_bytes, FTC_Face_Requester requester, FT_Pointer req_data, FTC_Manager *amanager ) pfFTC_Manager_New; 
    416     typedef void function( FTC_Manager manager ) pfFTC_Manager_Reset; 
    417     typedef void function( FTC_Manager manager ) pfFTC_Manager_Done; 
    418     typedef FT_Error function( FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface ) pfFTC_Manager_LookupFace; 
    419     typedef FT_Error function( FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize ) pfFTC_Manager_LookupSize; 
    420     typedef void function( FTC_Node node, FTC_Manager manager ) pfFTC_Node_Unref; 
    421     typedef void function( FTC_Manager manager, FTC_FaceID face_id ) pfFTC_Manager_RemoveFaceID; 
    422     typedef FT_Error function( FTC_Manager manager, FTC_CMapCache *acache ) pfFTC_CMapCache_New; 
    423     typedef FT_UInt function( FTC_CMapCache cache, FTC_FaceID face_id, FT_Int cmap_index, FT_UInt32 char_code ) pfFTC_CMapCache_Lookup; 
    424     typedef FT_Error function( FTC_Manager manager, FTC_ImageCache *acache ) pfFTC_ImageCache_New; 
    425     typedef FT_Error function( FTC_ImageCache cache, FTC_ImageType type, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ) pfFTC_ImageCache_Lookup; 
    426     typedef FT_Error function( FTC_Manager manager, FTC_SBitCache *acache ) pfFTC_SBitCache_New; 
    427     typedef FT_Error function( FTC_SBitCache cache, FTC_ImageType type, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ) pfFTC_SBitCache_Lookup; 
    428     typedef FT_Error function( FT_Face face, FT_Multi_Master *amaster ) pfFT_Get_Multi_Master; 
    429     typedef FT_Error function( FT_Face face, FT_MM_Var* *amaster ) pfFT_Get_MM_Var; 
    430     typedef FT_Error function( FT_Face face, FT_UInt num_coords, FT_Long* coords ) pfFT_Set_MM_Design_Coordinates; 
    431     typedef FT_Error function( FT_Face face, FT_UInt num_coords, FT_Fixed* coords ) pfFT_Set_Var_Design_Coordinates; 
    432     typedef FT_Error function( FT_Face face, FT_UInt num_coords, FT_Fixed* coords ) pfFT_Set_MM_Blend_Coordinates; 
    433     typedef FT_Error function( FT_Face face, FT_UInt num_coords, FT_Fixed* coords ) pfFT_Set_Var_Blend_Coordinates; 
    434     typedef FT_UInt function( FT_Face face ) pfFT_Get_Sfnt_Name_Count; 
    435     typedef FT_Error function( FT_Face face, FT_UInt idx, FT_SfntName *aname ) pfFT_Get_Sfnt_Name; 
    436     typedef FT_Error function( FT_Face face, FT_UInt validation_flags, FT_Bytes *BASE_table, FT_Bytes *GDEF_table, FT_Bytes *GPOS_table, FT_Bytes *GSUB_table, FT_Bytes *JSTF_table ) pfFT_OpenType_Validate; 
    437     typedef FT_Fixed function( FT_Angle angle ) pfFT_Sin; 
    438     typedef FT_Fixed function( FT_Angle angle ) pfFT_Cos; 
    439     typedef FT_Fixed function( FT_Angle angle ) pfFT_Tan; 
    440     typedef FT_Angle function( FT_Angle angle1, FT_Angle angle2 ) pfFT_Angle_Diff; 
    441     typedef void function( FT_Vector* vec, FT_Angle angle ) pfFT_Vector_Unit; 
    442     typedef void function( FT_Vector* vec, FT_Angle angle ) pfFT_Vector_Rotate; 
    443     typedef FT_Fixed function( FT_Vector* vec ) pfFT_Vector_Length; 
    444     typedef void function( FT_Vector* vec, FT_Fixed *length, FT_Angle *angle ) pfFT_Vector_Polarize; 
    445     typedef void function( FT_Vector* vec, FT_Fixed length, FT_Angle angle ) pfFT_Vector_From_Polar; 
    446     typedef FT_StrokerBorder function( FT_Outline* outline ) pfFT_Outline_GetInsideBorder; 
    447     typedef FT_StrokerBorder function( FT_Outline* outline ) pfFT_Outline_GetOutsideBorder; 
    448     typedef FT_Error function( FT_Memory memory, FT_Stroker *astroker ) pfFT_Stroker_New; 
    449     typedef void function( FT_Stroker stroker, FT_Fixed radius, FT_Stroker_LineCap line_cap, FT_Stroker_LineJoin line_join, FT_Fixed miter_limit ) pfFT_Stroker_Set; 
    450     typedef void function( FT_Stroker stroker ) pfFT_Stroker_Rewind; 
    451     typedef FT_Error function( FT_Stroker stroker, FT_Outline* outline, FT_Bool opened ) pfFT_Stroker_ParseOutline; 
    452     typedef FT_Error function( FT_Stroker stroker, FT_Vector* to, FT_Bool open ) pfFT_Stroker_BeginSubPath; 
    453     typedef FT_Error function( FT_Stroker stroker ) pfFT_Stroker_EndSubPath; 
    454     typedef FT_Error function( FT_Stroker stroker, FT_Vector* to ) pfFT_Stroker_LineTo; 
    455     typedef FT_Error function( FT_Stroker stroker, FT_Vector* control, FT_Vector* to ) pfFT_Stroker_ConicTo; 
    456     typedef FT_Error function( FT_Stroker stroker, FT_Vector* control1, FT_Vector* control2, FT_Vector* to ) pfFT_Stroker_CubicTo; 
    457     typedef FT_Error function( FT_Stroker stroker, FT_StrokerBorder border, FT_UInt *anum_points, FT_UInt *anum_contours ) pfFT_Stroker_GetBorderCounts; 
    458     typedef void function( FT_Stroker stroker, FT_StrokerBorder border, FT_Outline* outline ) pfFT_Stroker_ExportBorder; 
    459     typedef FT_Error function( FT_Stroker stroker, FT_UInt *anum_points, FT_UInt *anum_contours ) pfFT_Stroker_GetCounts; 
    460     typedef void function( FT_Stroker stroker, FT_Outline* outline ) pfFT_Stroker_Export; 
    461     typedef void function( FT_Stroker stroker ) pfFT_Stroker_Done; 
    462     typedef FT_Error function( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool destroy ) pfFT_Glyph_Stroke; 
    463     typedef FT_Error function( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool inside, FT_Bool destroy ) pfFT_Glyph_StrokeBorder; 
    464     typedef void function( FT_GlyphSlot slot ) pfFT_GlyphSlot_Embolden; 
    465     typedef void function( FT_GlyphSlot slot ) pfFT_GlyphSlot_Oblique; 
    466     typedef FT_Error function( FT_Library library, FT_LcdFilter filter) pfFT_Library_SetLcdFilter; 
    467     typedef void function( FTC_MruNode *plist, FTC_MruNode node ) pfFTC_MruNode_Prepend; 
    468     typedef void function( FTC_MruNode *plist, FTC_MruNode node ) pfFTC_MruNode_Up; 
    469     typedef void function( FTC_MruNode *plist, FTC_MruNode node ) pfFTC_MruNode_Remove; 
    470     typedef void function( FTC_MruList list, FTC_MruListClass clazz, FT_UInt max_nodes, FT_Pointer data, FT_Memory memory ) pfFTC_MruList_Init; 
    471     typedef void function( FTC_MruList list ) pfFTC_MruList_Reset; 
    472     typedef void function( FTC_MruList list ) pfFTC_MruList_Done; 
    473     typedef FTC_MruNode function( FTC_MruList list, FT_Pointer key ) pfFTC_MruList_Find; 
    474     typedef FT_Error function( FTC_MruList list, FT_Pointer key, FTC_MruNode *anode ) pfFTC_MruList_New; 
    475     typedef FT_Error function( FTC_MruList list, FT_Pointer key, FTC_MruNode *pnode ) pfFTC_MruList_Lookup; 
    476     typedef void function( FTC_MruList list, FTC_MruNode node ) pfFTC_MruList_Remove; 
    477     typedef void function( FTC_MruList list, FTC_MruNode_CompareFunc selection, FT_Pointer key ) pfFTC_MruList_RemoveSelection; 
    478     typedef void function( FTC_Node node, FTC_Manager manager ) pfftc_node_destroy; 
    479     typedef FT_Error function( FTC_Cache cache ) pfFTC_Cache_Init; 
    480     typedef void function( FTC_Cache cache ) pfFTC_Cache_Done; 
    481     typedef FT_Error function( FTC_Cache cache, FT_UInt32 hash, FT_Pointer query, FTC_Node *anode ) pfFTC_Cache_Lookup; 
    482     typedef FT_Error function( FTC_Cache cache, FT_UInt32 hash, FT_Pointer query, FTC_Node *anode ) pfFTC_Cache_NewNode; 
    483     typedef void function( FTC_Cache cache, FTC_FaceID face_id ) pfFTC_Cache_RemoveFaceID; 
    484     typedef void function( FTC_Manager manager ) pfFTC_Manager_Compress; 
    485     typedef FT_UInt function( FTC_Manager manager, FT_UInt count ) pfFTC_Manager_FlushN; 
    486     typedef FT_Error function( FTC_Manager manager, FTC_CacheClass clazz, FTC_Cache *acache ) pfFTC_Manager_RegisterCache; 
    487     typedef void function( FTC_GNode node, FT_UInt gindex, FTC_Family family ) pfFTC_GNode_Init; 
    488     typedef FT_Bool function( FTC_GNode gnode, FTC_GQuery gquery ) pfFTC_GNode_Compare; 
    489     typedef void function( FTC_GNode gnode, FTC_Cache cache ) pfFTC_GNode_UnselectFamily; 
    490     typedef void function( FTC_GNode node, FTC_Cache cache ) pfFTC_GNode_Done; 
    491     typedef void function( FTC_Family family, FTC_Cache cache ) pfFTC_Family_Init; 
    492     typedef FT_Error function( FTC_GCache cache ) pfFTC_GCache_Init; 
    493     typedef void function( FTC_GCache cache ) pfFTC_GCache_Done; 
    494     typedef FT_Error function( FTC_Manager manager, FTC_GCacheClass clazz, FTC_GCache *acache ) pfFTC_GCache_New; 
    495     typedef FT_Error function( FTC_GCache cache, FT_UInt32 hash, FT_UInt gindex, FTC_GQuery query, FTC_Node *anode ) pfFTC_GCache_Lookup; 
    496     typedef void function( FTC_INode inode, FTC_Cache cache ) pfFTC_INode_Free; 
    497     typedef FT_Error function( FTC_INode *pinode, FTC_GQuery gquery, FTC_Cache cache ) pfFTC_INode_New; 
    498     typedef FT_ULong function( FTC_INode inode ) pfFTC_INode_Weight; 
    499     typedef void function( FTC_SNode snode, FTC_Cache cache ) pfFTC_SNode_Free; 
    500     typedef FT_Error function( FTC_SNode *psnode, FTC_GQuery gquery, FTC_Cache cache ) pfFTC_SNode_New; 
    501     typedef FT_ULong function( FTC_SNode inode ) pfFTC_SNode_Weight; 
    502     typedef FT_Bool function( FTC_SNode snode, FTC_GQuery gquery, FTC_Cache cache ) pfFTC_SNode_Compare; 
    503     typedef char* function( FT_Face face ) pfFT_Get_X11_Font_Format; 
    504     typedef FT_Error function( FT_Memory memory, FT_Long size, void* *P ) pfFT_Alloc; 
    505     typedef FT_Error function( FT_Memory memory, FT_Long size, void* *p ) pfFT_QAlloc; 
    506     typedef FT_Error function( FT_Memory memory, FT_Long current, FT_Long size, void* *P ) pfFT_Realloc; 
    507     typedef FT_Error function( FT_Memory memory, FT_Long current, FT_Long size, void* *p ) pfFT_QRealloc; 
    508     typedef void function( FT_Memory memory, void* *P ) pfFT_Free; 
    509     typedef FT_Error function( FT_Memory memory, FT_GlyphLoader *aloader ) pfFT_GlyphLoader_New; 
    510     typedef FT_Error function( FT_GlyphLoader loader ) pfFT_GlyphLoader_CreateExtra; 
    511     typedef void function( FT_GlyphLoader loader ) pfFT_GlyphLoader_Done; 
    512     typedef void function( FT_GlyphLoader loader ) pfFT_GlyphLoader_Reset; 
    513     typedef void function( FT_GlyphLoader loader ) pfFT_GlyphLoader_Rewind; 
    514     typedef FT_Error function( FT_GlyphLoader loader, FT_UInt n_points, FT_UInt n_contours ) pfFT_GlyphLoader_CheckPoints; 
    515     typedef FT_Error function( FT_GlyphLoader loader, FT_UInt n_subs ) pfFT_GlyphLoader_CheckSubGlyphs; 
    516     typedef void function( FT_GlyphLoader loader ) pfFT_GlyphLoader_Prepare; 
    517     typedef void function( FT_GlyphLoader loader ) pfFT_GlyphLoader_Add; 
    518     typedef FT_Error function( FT_GlyphLoader target, FT_GlyphLoader source ) pfFT_GlyphLoader_CopyPoints; 
    519     typedef FT_Pointer function( FT_ServiceDesc service_descriptors, char* service_id ) pfft_service_list_lookup; 
    520     typedef FT_Error function( FT_CMap_Class clazz, FT_Pointer init_data, FT_CharMap charmap, FT_CMap *acmap ) pfFT_CMap_New; 
    521     typedef void function( FT_CMap cmap ) pfFT_CMap_Done; 
    522     typedef void* function( FT_Library library, char* mod_name ) pfFT_Get_Module_Interface; 
    523     typedef FT_Pointer function( FT_Module mod, char* service_id ) pfft_module_get_service; 
    524     typedef FT_Error function( FT_Face face, FT_GlyphSlot *aslot ) pfFT_New_GlyphSlot; 
    525     typedef void function( FT_GlyphSlot slot ) pfFT_Done_GlyphSlot; 
    526     typedef void function( FT_GlyphSlot slot ) pfft_glyphslot_free_bitmap; 
    527     typedef FT_Error function( FT_GlyphSlot slot, FT_ULong size ) pfft_glyphslot_alloc_bitmap; 
    528     typedef void function( FT_GlyphSlot slot, FT_Byte* buffer ) pfft_glyphslot_set_bitmap; 
    529     typedef FT_Renderer function( FT_Library library, FT_Glyph_Format format, FT_ListNode* node ) pfFT_Lookup_Renderer; 
    530     typedef FT_Error function( FT_Library library, FT_GlyphSlot slot, FT_Render_Mode render_mode ) pfFT_Render_Glyph_Internal; 
    531     typedef FT_Memory function() pfFT_New_Memory; 
    532     typedef void function( FT_Memory memory ) pfFT_Done_Memory; 
    533     typedef FT_Error function( FT_Stream stream, char* filepathname ) pfFT_Stream_Open; 
    534     typedef FT_Error function( FT_Library library, FT_Open_Args* args, FT_Stream *astream ) pfFT_Stream_New; 
    535     typedef void function( FT_Stream stream, FT_Int external ) pfFT_Stream_Free; 
    536     typedef void function( FT_Stream stream, FT_Byte* base, FT_ULong size ) pfFT_Stream_OpenMemory; 
    537     typedef void function( FT_Stream stream ) pfFT_Stream_Close; 
    538     typedef FT_Error function( FT_Stream stream, FT_ULong pos ) pfFT_Stream_Seek; 
    539     typedef FT_Error function( FT_Stream stream, FT_Long distance ) pfFT_Stream_Skip; 
    540     typedef FT_Long function( FT_Stream stream ) pfFT_Stream_Pos; 
    541     typedef FT_Error function( FT_Stream stream, FT_Byte* buffer, FT_ULong count ) pfFT_Stream_Read; 
    542     typedef FT_Error function( FT_Stream stream, FT_ULong pos, FT_Byte* buffer, FT_ULong count ) pfFT_Stream_ReadAt; 
    543     typedef FT_ULong function( FT_Stream stream, FT_Byte* buffer, FT_ULong count ) pfFT_Stream_TryRead; 
    544     typedef FT_Error function( FT_Stream stream, FT_ULong count ) pfFT_Stream_EnterFrame; 
    545     typedef void function( FT_Stream stream ) pfFT_Stream_ExitFrame; 
    546     typedef FT_Error function( FT_Stream stream, FT_ULong count, FT_Byte** pbytes ) pfFT_Stream_ExtractFrame; 
    547     typedef void function( FT_Stream stream, FT_Byte** pbytes ) pfFT_Stream_ReleaseFrame; 
    548     typedef FT_Char function( FT_Stream stream ) pfFT_Stream_GetChar; 
    549     typedef FT_Short function( FT_Stream stream ) pfFT_Stream_GetShort; 
    550     typedef FT_Long function( FT_Stream stream ) pfFT_Stream_GetOffset; 
    551     typedef FT_Long function( FT_Stream stream ) pfFT_Stream_GetLong; 
    552     typedef FT_Short function( FT_Stream stream ) pfFT_Stream_GetShortLE; 
    553     typedef FT_Long function( FT_Stream stream ) pfFT_Stream_GetLongLE; 
    554     typedef FT_Char function( FT_Stream stream, FT_Error* error ) pfFT_Stream_ReadChar; 
    555     typedef FT_Short function( FT_Stream stream, FT_Error* error ) pfFT_Stream_ReadShort; 
    556     typedef FT_Long function( FT_Stream stream, FT_Error* error ) pfFT_Stream_ReadOffset; 
    557     typedef FT_Long function( FT_Stream stream, FT_Error* error ) pfFT_Stream_ReadLong; 
    558     typedef FT_Short function( FT_Stream stream, FT_Error* error ) pfFT_Stream_ReadShortLE; 
    559     typedef FT_Long function( FT_Stream stream, FT_Error* error ) pfFT_Stream_ReadLongLE; 
    560     typedef FT_Error function( FT_Stream stream, FT_Frame_Field* fields, void* structure ) pfFT_Stream_ReadFields; 
    561     typedef FT_Int function() pfFT_Trace_Get_Count; 
    562     typedef char* function( FT_Int idx ) pfFT_Trace_Get_Name; 
    563     typedef void function() pfft_debug_init; 
    564     typedef FT_Int32 function( FT_Int32 x ) pfFT_SqrtFixed; 
    565     typedef void function( FT_Library library, FT_Stream stream, char* base_name, char** new_names, FT_Long* offsets, FT_Error* errors ) pfFT_Raccess_Guess; 
    566     typedef FT_Error function( FT_Library library, FT_Stream stream, FT_Long rfork_offset, FT_Long *map_offset, FT_Long *rdata_pos ) pfFT_Raccess_Get_HeaderInfo; 
    567     typedef FT_Error function( FT_Library library, FT_Stream stream, FT_Long map_offset, FT_Long rdata_pos, FT_Long tag, FT_Long **offsets, FT_Long *count ) pfFT_Raccess_Get_DataOffsets; 
    568     typedef void function( FT_Validator valid, FT_Byte* base, FT_Byte* limit, FT_ValidationLevel level ) pfft_validator_init; 
    569     typedef FT_Int function( FT_Validator valid ) pfft_validator_run; 
    570     typedef void function( FT_Validator valid, FT_Error error ) pfft_validator_error; 
    571  
    572  
    573     pfFT_Init_FreeType  FT_Init_FreeType; 
    574     pfFT_Library_Version  FT_Library_Version; 
    575     pfFT_Done_FreeType  FT_Done_FreeType; 
    576     pfFT_New_Face  FT_New_Face; 
    577     pfFT_New_Memory_Face  FT_New_Memory_Face; 
    578     pfFT_Open_Face  FT_Open_Face; 
    579     pfFT_Attach_File  FT_Attach_File; 
    580     pfFT_Attach_Stream  FT_Attach_Stream; 
    581     pfFT_Done_Face  FT_Done_Face; 
    582     pfFT_Set_Char_Size  FT_Set_Char_Size; 
    583     pfFT_Set_Pixel_Sizes  FT_Set_Pixel_Sizes; 
    584     pfFT_Load_Glyph  FT_Load_Glyph; 
    585     pfFT_Load_Char  FT_Load_Char; 
    586     pfFT_Set_Transform  FT_Set_Transform; 
    587     pfFT_Render_Glyph  FT_Render_Glyph; 
    588     pfFT_Get_Kerning  FT_Get_Kerning; 
    589     pfFT_Get_Glyph_Name  FT_Get_Glyph_Name; 
    590     pfFT_Get_Postscript_Name  FT_Get_Postscript_Name; 
    591     pfFT_Select_Charmap  FT_Select_Charmap; 
    592     pfFT_Set_Charmap  FT_Set_Charmap; 
    593     pfFT_Get_Charmap_Index  FT_Get_Charmap_Index; 
    594     pfFT_Get_Char_Index  FT_Get_Char_Index; 
    595     pfFT_Get_First_Char  FT_Get_First_Char; 
    596     pfFT_Get_Next_Char  FT_Get_Next_Char; 
    597     pfFT_Get_Name_Index  FT_Get_Name_Index; 
    598     pfFT_MulDiv  FT_MulDiv; 
    599     pfFT_MulFix  FT_MulFix; 
    600     pfFT_DivFix  FT_DivFix; 
    601     pfFT_RoundFix  FT_RoundFix; 
    602     pfFT_CeilFix  FT_CeilFix; 
    603     pfFT_FloorFix  FT_FloorFix; 
    604     pfFT_Vector_Transform  FT_Vector_Transform; 
    605     pfFT_List_Find  FT_List_Find; 
    606     pfFT_List_Add  FT_List_Add; 
    607     pfFT_List_Insert  FT_List_Insert; 
    608     pfFT_List_Remove  FT_List_Remove; 
    609     pfFT_List_Up  FT_List_Up; 
    610     pfFT_List_Iterate  FT_List_Iterate; 
    611     pfFT_List_Finalize  FT_List_Finalize; 
    612     pfFT_Outline_Decompose  FT_Outline_Decompose; 
    613     pfFT_Outline_New  FT_Outline_New; 
    614     pfFT_Outline_New_Internal  FT_Outline_New_Internal; 
    615     pfFT_Outline_Done  FT_Outline_Done; 
    616     pfFT_Outline_Done_Internal  FT_Outline_Done_Internal; 
    617     pfFT_Outline_Check  FT_Outline_Check; 
    618     pfFT_Outline_Get_CBox  FT_Outline_Get_CBox; 
    619     pfFT_Outline_Translate  FT_Outline_Translate; 
    620     pfFT_Outline_Copy  FT_Outline_Copy; 
    621     pfFT_Outline_Transform  FT_Outline_Transform; 
    622     pfFT_Outline_Embolden  FT_Outline_Embolden; 
    623     pfFT_Outline_Reverse  FT_Outline_Reverse; 
    624     pfFT_Outline_Get_Bitmap  FT_Outline_Get_Bitmap; 
    625     pfFT_Outline_Render  FT_Outline_Render; 
    626     pfFT_Outline_Get_Orientation  FT_Outline_Get_Orientation; 
    627     pfFT_New_Size  FT_New_Size; 
    628     pfFT_Done_Size  FT_Done_Size; 
    629     pfFT_Activate_Size  FT_Activate_Size; 
    630     pfFT_Add_Module  FT_Add_Module; 
    631     pfFT_Get_Module  FT_Get_Module; 
    632     pfFT_Remove_Module  FT_Remove_Module; 
    633     pfFT_New_Library  FT_New_Library; 
    634     pfFT_Done_Library  FT_Done_Library; 
    635     pfFT_Set_Debug_Hook  FT_Set_Debug_Hook; 
    636     pfFT_Add_Default_Modules  FT_Add_Default_Modules; 
    637     pfFT_Get_Glyph  FT_Get_Glyph; 
    638     pfFT_Glyph_Copy  FT_Glyph_Copy; 
    639     pfFT_Glyph_Transform  FT_Glyph_Transform; 
    640     pfFT_Glyph_Get_CBox  FT_Glyph_Get_CBox; 
    641     pfFT_Glyph_To_Bitmap  FT_Glyph_To_Bitmap; 
    642     pfFT_Done_Glyph  FT_Done_Glyph; 
    643     pfFT_Matrix_Multiply  FT_Matrix_Multiply; 
    644     pfFT_Matrix_Invert  FT_Matrix_Invert; 
    645     pfFT_Get_Renderer  FT_Get_Renderer; 
    646     pfFT_Set_Renderer  FT_Set_Renderer; 
    647     pfFT_Has_PS_Glyph_Names  FT_Has_PS_Glyph_Names; 
    648     pfFT_Get_PS_Font_Info  FT_Get_PS_Font_Info; 
    649     pfFT_Get_PS_Font_Private  FT_Get_PS_Font_Private; 
    650     pfFT_Get_Sfnt_Table  FT_Get_Sfnt_Table; 
    651     pfFT_Load_Sfnt_Table  FT_Load_Sfnt_Table; 
    652     pfFT_Sfnt_Table_Info  FT_Sfnt_Table_Info; 
    653     pfFT_Get_CMap_Language_ID  FT_Get_CMap_Language_ID; 
    654     pfFT_Get_BDF_Charset_ID  FT_Get_BDF_Charset_ID; 
    655     pfFT_Get_BDF_Property  FT_Get_BDF_Property; 
    656     pfFT_Stream_OpenGzip  FT_Stream_OpenGzip; 
    657     pfFT_Stream_OpenLZW  FT_Stream_OpenLZW; 
    658     pfFT_Get_WinFNT_Header  FT_Get_WinFNT_Header; 
    659     pfFT_Bitmap_New  FT_Bitmap_New; 
    660     pfFT_Bitmap_Copy  FT_Bitmap_Copy; 
    661     pfFT_Bitmap_Embolden  FT_Bitmap_Embolden; 
    662     pfFT_Bitmap_Convert  FT_Bitmap_Convert; 
    663     pfFT_Bitmap_Done  FT_Bitmap_Done; 
    664     pfFT_Outline_Get_BBox  FT_Outline_Get_BBox; 
    665     pfFTC_Manager_New  FTC_Manager_New; 
    666     pfFTC_Manager_Reset  FTC_Manager_Reset; 
    667     pfFTC_Manager_Done  FTC_Manager_Done; 
    668     pfFTC_Manager_LookupFace  FTC_Manager_LookupFace; 
    669     pfFTC_Manager_LookupSize  FTC_Manager_LookupSize; 
    670     pfFTC_Node_Unref  FTC_Node_Unref; 
    671     pfFTC_Manager_RemoveFaceID  FTC_Manager_RemoveFaceID; 
    672     pfFTC_CMapCache_New  FTC_CMapCache_New; 
    673     pfFTC_CMapCache_Lookup  FTC_CMapCache_Lookup; 
    674     pfFTC_ImageCache_New  FTC_ImageCache_New; 
    675     pfFTC_ImageCache_Lookup  FTC_ImageCache_Lookup; 
    676     pfFTC_SBitCache_New  FTC_SBitCache_New; 
    677     pfFTC_SBitCache_Lookup  FTC_SBitCache_Lookup; 
    678     pfFT_Get_Multi_Master  FT_Get_Multi_Master; 
    679     pfFT_Get_MM_Var  FT_Get_MM_Var; 
    680     pfFT_Set_MM_Design_Coordinates  FT_Set_MM_Design_Coordinates; 
    681     pfFT_Set_Var_Design_Coordinates  FT_Set_Var_Design_Coordinates; 
    682     pfFT_Set_MM_Blend_Coordinates  FT_Set_MM_Blend_Coordinates; 
    683     pfFT_Set_Var_Blend_Coordinates  FT_Set_Var_Blend_Coordinates; 
    684     pfFT_Get_Sfnt_Name_Count  FT_Get_Sfnt_Name_Count; 
    685     pfFT_Get_Sfnt_Name  FT_Get_Sfnt_Name; 
    686     pfFT_OpenType_Validate  FT_OpenType_Validate; 
    687     pfFT_Sin  FT_Sin; 
    688     pfFT_Cos  FT_Cos; 
    689     pfFT_Tan  FT_Tan; 
    690     pfFT_Angle_Diff  FT_Angle_Diff; 
    691     pfFT_Vector_Unit  FT_Vector_Unit; 
    692     pfFT_Vector_Rotate  FT_Vector_Rotate; 
    693     pfFT_Vector_Length  FT_Vector_Length; 
    694     pfFT_Vector_Polarize  FT_Vector_Polarize; 
    695     pfFT_Vector_From_Polar  FT_Vector_From_Polar; 
    696     pfFT_Outline_GetInsideBorder  FT_Outline_GetInsideBorder; 
    697     pfFT_Outline_GetOutsideBorder  FT_Outline_GetOutsideBorder; 
    698     pfFT_Stroker_New  FT_Stroker_New; 
    699     pfFT_Stroker_Set  FT_Stroker_Set; 
    700     pfFT_Stroker_Rewind  FT_Stroker_Rewind; 
    701     pfFT_Stroker_ParseOutline  FT_Stroker_ParseOutline; 
    702     pfFT_Stroker_BeginSubPath  FT_Stroker_BeginSubPath; 
    703     pfFT_Stroker_EndSubPath  FT_Stroker_EndSubPath; 
    704     pfFT_Stroker_LineTo  FT_Stroker_LineTo; 
    705     pfFT_Stroker_ConicTo  FT_Stroker_ConicTo; 
    706     pfFT_Stroker_CubicTo  FT_Stroker_CubicTo; 
    707     pfFT_Stroker_GetBorderCounts  FT_Stroker_GetBorderCounts; 
    708     pfFT_Stroker_ExportBorder  FT_Stroker_ExportBorder; 
    709     pfFT_Stroker_GetCounts  FT_Stroker_GetCounts; 
    710     pfFT_Stroker_Export  FT_Stroker_Export; 
    711     pfFT_Stroker_Done  FT_Stroker_Done; 
    712     pfFT_Glyph_Stroke  FT_Glyph_Stroke; 
    713     pfFT_Glyph_StrokeBorder  FT_Glyph_StrokeBorder; 
    714     pfFT_GlyphSlot_Embolden  FT_GlyphSlot_Embolden; 
    715     pfFT_GlyphSlot_Oblique  FT_GlyphSlot_Oblique; 
    716     pfFT_Library_SetLcdFilter FT_Library_SetLcdFilter; 
    717     pfFTC_MruNode_Prepend  FTC_MruNode_Prepend; 
    718     pfFTC_MruNode_Up  FTC_MruNode_Up; 
    719     pfFTC_MruNode_Remove  FTC_MruNode_Remove; 
    720     pfFTC_MruList_Init  FTC_MruList_Init; 
    721     pfFTC_MruList_Reset  FTC_MruList_Reset; 
    722     pfFTC_MruList_Done  FTC_MruList_Done; 
    723     pfFTC_MruList_Find  FTC_MruList_Find; 
    724     pfFTC_MruList_New  FTC_MruList_New; 
    725     pfFTC_MruList_Lookup  FTC_MruList_Lookup; 
    726     pfFTC_MruList_Remove  FTC_MruList_Remove; 
    727     pfFTC_MruList_RemoveSelection  FTC_MruList_RemoveSelection; 
    728     pfftc_node_destroy  ftc_node_destroy; 
    729     pfFTC_Cache_Init  FTC_Cache_Init; 
    730     pfFTC_Cache_Done  FTC_Cache_Done; 
    731     pfFTC_Cache_Lookup  FTC_Cache_Lookup; 
    732     pfFTC_Cache_NewNode  FTC_Cache_NewNode; 
    733     pfFTC_Cache_RemoveFaceID  FTC_Cache_RemoveFaceID; 
    734     pfFTC_Manager_Compress  FTC_Manager_Compress; 
    735     pfFTC_Manager_FlushN  FTC_Manager_FlushN; 
    736     pfFTC_Manager_RegisterCache  FTC_Manager_RegisterCache; 
    737     pfFTC_GNode_Init  FTC_GNode_Init; 
    738     pfFTC_GNode_Compare  FTC_GNode_Compare; 
    739     pfFTC_GNode_UnselectFamily  FTC_GNode_UnselectFamily; 
    740     pfFTC_GNode_Done  FTC_GNode_Done; 
    741     pfFTC_Family_Init  FTC_Family_Init; 
    742     pfFTC_GCache_Init  FTC_GCache_Init; 
    743     pfFTC_GCache_Done  FTC_GCache_Done; 
    744     pfFTC_GCache_New  FTC_GCache_New; 
    745     pfFTC_GCache_Lookup  FTC_GCache_Lookup; 
    746     pfFTC_INode_Free  FTC_INode_Free; 
    747     pfFTC_INode_New  FTC_INode_New; 
    748     pfFTC_INode_Weight  FTC_INode_Weight; 
    749     pfFTC_SNode_Free  FTC_SNode_Free; 
    750     pfFTC_SNode_New  FTC_SNode_New; 
    751     pfFTC_SNode_Weight  FTC_SNode_Weight; 
    752     pfFTC_SNode_Compare  FTC_SNode_Compare; 
    753     pfFT_Get_X11_Font_Format  FT_Get_X11_Font_Format; 
    754     pfFT_Alloc  FT_Alloc; 
    755     pfFT_QAlloc  FT_QAlloc; 
    756     pfFT_Realloc  FT_Realloc; 
    757     pfFT_QRealloc  FT_QRealloc; 
    758     pfFT_Free  FT_Free; 
    759     pfFT_GlyphLoader_New  FT_GlyphLoader_New; 
    760     pfFT_GlyphLoader_CreateExtra  FT_GlyphLoader_CreateExtra; 
    761     pfFT_GlyphLoader_Done  FT_GlyphLoader_Done; 
    762     pfFT_GlyphLoader_Reset  FT_GlyphLoader_Reset; 
    763     pfFT_GlyphLoader_Rewind  FT_GlyphLoader_Rewind; 
    764     pfFT_GlyphLoader_CheckPoints  FT_GlyphLoader_CheckPoints; 
    765     pfFT_GlyphLoader_CheckSubGlyphs  FT_GlyphLoader_CheckSubGlyphs; 
    766     pfFT_GlyphLoader_Prepare  FT_GlyphLoader_Prepare; 
    767     pfFT_GlyphLoader_Add  FT_GlyphLoader_Add; 
    768     pfFT_GlyphLoader_CopyPoints  FT_GlyphLoader_CopyPoints; 
    769     pfft_service_list_lookup  ft_service_list_lookup; 
    770     pfFT_CMap_New  FT_CMap_New; 
    771     pfFT_CMap_Done  FT_CMap_Done; 
    772     pfFT_Get_Module_Interface  FT_Get_Module_Interface; 
    773     pfft_module_get_service  ft_module_get_service; 
    774     pfFT_New_GlyphSlot  FT_New_GlyphSlot; 
    775     pfFT_Done_GlyphSlot  FT_Done_GlyphSlot; 
    776     pfft_glyphslot_free_bitmap  ft_glyphslot_free_bitmap; 
    777     pfft_glyphslot_alloc_bitmap  ft_glyphslot_alloc_bitmap; 
    778     pfft_glyphslot_set_bitmap  ft_glyphslot_set_bitmap; 
    779     pfFT_Lookup_Renderer  FT_Lookup_Renderer; 
    780     pfFT_Render_Glyph_Internal  FT_Render_Glyph_Internal; 
    781     pfFT_New_Memory  FT_New_Memory; 
    782     pfFT_Done_Memory  FT_Done_Memory; 
    783     pfFT_Stream_Open  FT_Stream_Open; 
    784     pfFT_Stream_New  FT_Stream_New; 
    785     pfFT_Stream_Free  FT_Stream_Free; 
    786     pfFT_Stream_OpenMemory  FT_Stream_OpenMemory; 
    787     pfFT_Stream_Close  FT_Stream_Close; 
    788     pfFT_Stream_Seek  FT_Stream_Seek; 
    789     pfFT_Stream_Skip  FT_Stream_Skip; 
    790     pfFT_Stream_Pos  FT_Stream_Pos; 
    791     pfFT_Stream_Read  FT_Stream_Read; 
    792     pfFT_Stream_ReadAt  FT_Stream_ReadAt; 
    793     pfFT_Stream_TryRead  FT_Stream_TryRead; 
    794     pfFT_Stream_EnterFrame  FT_Stream_EnterFrame; 
    795     pfFT_Stream_ExitFrame  FT_Stream_ExitFrame; 
    796     pfFT_Stream_ExtractFrame  FT_Stream_ExtractFrame; 
    797     pfFT_Stream_ReleaseFrame  FT_Stream_ReleaseFrame; 
    798     pfFT_Stream_GetChar  FT_Stream_GetChar; 
    799     pfFT_Stream_GetShort  FT_Stream_GetShort; 
    800     pfFT_Stream_GetOffset  FT_Stream_GetOffset; 
    801     pfFT_Stream_GetLong  FT_Stream_GetLong; 
    802     pfFT_Stream_GetShortLE  FT_Stream_GetShortLE; 
    803     pfFT_Stream_GetLongLE  FT_Stream_GetLongLE; 
    804     pfFT_Stream_ReadChar  FT_Stream_ReadChar; 
    805     pfFT_Stream_ReadShort  FT_Stream_ReadShort; 
    806     pfFT_Stream_ReadOffset  FT_Stream_ReadOffset; 
    807     pfFT_Stream_ReadLong  FT_Stream_ReadLong; 
    808     pfFT_Stream_ReadShortLE  FT_Stream_ReadShortLE; 
    809     pfFT_Stream_ReadLongLE  FT_Stream_ReadLongLE; 
    810     pfFT_Stream_ReadFields  FT_Stream_ReadFields; 
    811     pfFT_Trace_Get_Count  FT_Trace_Get_Count; 
    812     pfFT_Trace_Get_Name  FT_Trace_Get_Name; 
    813     pfft_debug_init  ft_debug_init; 
    814     pfFT_SqrtFixed  FT_SqrtFixed; 
    815     pfFT_Raccess_Guess  FT_Raccess_Guess; 
    816     pfFT_Raccess_Get_HeaderInfo  FT_Raccess_Get_HeaderInfo; 
    817     pfFT_Raccess_Get_DataOffsets  FT_Raccess_Get_DataOffsets; 
    818     pfft_validator_init  ft_validator_init; 
    819     pfft_validator_run  ft_validator_run; 
    820     pfft_validator_error  ft_validator_error; 
     43    // FreeType functions 
     44    bindFunc(FT_Init_FreeType)("FT_Init_FreeType", lib); 
     45    bindFunc(FT_Library_Version)("FT_Library_Version", lib); 
     46    bindFunc(FT_Done_FreeType)("FT_Done_FreeType", lib); 
     47    bindFunc(FT_New_Face)("FT_New_Face", lib); 
     48    bindFunc(FT_New_Memory_Face)("FT_New_Memory_Face", lib); 
     49    bindFunc(FT_Open_Face)("FT_Open_Face", lib); 
     50    bindFunc(FT_Attach_File)("FT_Attach_File", lib); 
     51    bindFunc(FT_Attach_Stream)("FT_Attach_Stream", lib); 
     52    bindFunc(FT_Done_Face)("FT_Done_Face", lib); 
     53    bindFunc(FT_Set_Char_Size)("FT_Set_Char_Size", lib); 
     54    bindFunc(FT_Set_Pixel_Sizes)("FT_Set_Pixel_Sizes", lib); 
     55    bindFunc(FT_Load_Glyph)("FT_Load_Glyph", lib); 
     56    bindFunc(FT_Load_Char)("FT_Load_Char", lib); 
     57    bindFunc(FT_Set_Transform)("FT_Set_Transform", lib); 
     58    bindFunc(FT_Render_Glyph)("FT_Render_Glyph", lib); 
     59    bindFunc(FT_Get_Kerning)("FT_Get_Kerning", lib); 
     60    bindFunc(FT_Get_Glyph_Name)("FT_Get_Glyph_Name", lib); 
     61    bindFunc(FT_Get_Postscript_Name)("FT_Get_Postscript_Name", lib); 
     62    bindFunc(FT_Select_Charmap)("FT_Select_Charmap", lib); 
     63    bindFunc(FT_Set_Charmap)("FT_Set_Charmap", lib); 
     64    bindFunc(FT_Get_Charmap_Index)("FT_Get_Charmap_Index", lib); 
     65    bindFunc(FT_Get_Char_Index)("FT_Get_Char_Index", lib); 
     66    bindFunc(FT_Get_First_Char)("FT_Get_First_Char", lib); 
     67    bindFunc(FT_Get_Next_Char)("FT_Get_Next_Char", lib); 
     68    bindFunc(FT_Get_Name_Index)("FT_Get_Name_Index", lib); 
     69    bindFunc(FT_MulDiv)("FT_MulDiv", lib); 
     70    bindFunc(FT_MulFix)("FT_MulFix", lib); 
     71    bindFunc(FT_DivFix)("FT_DivFix", lib); 
     72    bindFunc(FT_RoundFix)("FT_RoundFix", lib); 
     73    bindFunc(FT_CeilFix)("FT_CeilFix", lib); 
     74    bindFunc(FT_FloorFix)("FT_FloorFix", lib); 
     75    bindFunc(FT_Vector_Transform)("FT_Vector_Transform", lib); 
     76    bindFunc(FT_List_Find)("FT_List_Find", lib); 
     77    bindFunc(FT_List_Add)("FT_List_Add", lib); 
     78    bindFunc(FT_List_Insert)("FT_List_Insert", lib); 
     79    bindFunc(FT_List_Remove)("FT_List_Remove", lib); 
     80    bindFunc(FT_List_Up)("FT_List_Up", lib); 
     81    bindFunc(FT_List_Iterate)("FT_List_Iterate", lib); 
     82    bindFunc(FT_List_Finalize)("FT_List_Finalize", lib); 
     83    bindFunc(FT_Outline_Decompose)("FT_Outline_Decompose", lib); 
     84    bindFunc(FT_Outline_New)("FT_Outline_New", lib); 
     85    bindFunc(FT_Outline_New_Internal)("FT_Outline_New_Internal", lib); 
     86    bindFunc(FT_Outline_Done)("FT_Outline_Done", lib); 
     87    bindFunc(FT_Outline_Done_Internal)("FT_Outline_Done_Internal", lib); 
     88    bindFunc(FT_Outline_Check)("FT_Outline_Check", lib); 
     89    bindFunc(FT_Outline_Get_CBox)("FT_Outline_Get_CBox", lib); 
     90    bindFunc(FT_Outline_Translate)("FT_Outline_Translate", lib); 
     91    bindFunc(FT_Outline_Copy)("FT_Outline_Copy", lib); 
     92    bindFunc(FT_Outline_Transform)("FT_Outline_Transform", lib); 
     93    bindFunc(FT_Outline_Embolden)("FT_Outline_Embolden", lib); 
     94    bindFunc(FT_Outline_Reverse)("FT_Outline_Reverse", lib); 
     95    bindFunc(FT_Outline_Get_Bitmap)("FT_Outline_Get_Bitmap", lib); 
     96    bindFunc(FT_Outline_Render)("FT_Outline_Render", lib); 
     97    bindFunc(FT_Outline_Get_Orientation)("FT_Outline_Get_Orientation", lib); 
     98    bindFunc(FT_New_Size)("FT_New_Size", lib); 
     99    bindFunc(FT_Done_Size)("FT_Done_Size", lib); 
     100    bindFunc(FT_Activate_Size)("FT_Activate_Size", lib); 
     101    bindFunc(FT_Add_Module)("FT_Add_Module", lib); 
     102    bindFunc(FT_Get_Module)("FT_Get_Module", lib); 
     103    bindFunc(FT_Remove_Module)("FT_Remove_Module", lib); 
     104    bindFunc(FT_New_Library)("FT_New_Library", lib); 
     105    bindFunc(FT_Done_Library)("FT_Done_Library", lib); 
     106    bindFunc(FT_Set_Debug_Hook)("FT_Set_Debug_Hook", lib); 
     107    bindFunc(FT_Add_Default_Modules)("FT_Add_Default_Modules", lib); 
     108    bindFunc(FT_Get_Glyph)("FT_Get_Glyph", lib); 
     109    bindFunc(FT_Glyph_Copy)("FT_Glyph_Copy", lib); 
     110    bindFunc(FT_Glyph_Transform)("FT_Glyph_Transform", lib); 
     111    bindFunc(FT_Glyph_Get_CBox)("FT_Glyph_Get_CBox", lib); 
     112    bindFunc(FT_Glyph_To_Bitmap)("FT_Glyph_To_Bitmap", lib); 
     113    bindFunc(FT_Done_Glyph)("FT_Done_Glyph", lib); 
     114    bindFunc(FT_Matrix_Multiply)("FT_Matrix_Multiply", lib); 
     115    bindFunc(FT_Matrix_Invert)("FT_Matrix_Invert", lib); 
     116    bindFunc(FT_Get_Renderer)("FT_Get_Renderer", lib); 
     117    bindFunc(FT_Set_Renderer)("FT_Set_Renderer", lib); 
     118    bindFunc(FT_Has_PS_Glyph_Names)("FT_Has_PS_Glyph_Names", lib); 
     119    bindFunc(FT_Get_PS_Font_Info)("FT_Get_PS_Font_Info", lib); 
     120    bindFunc(FT_Get_PS_Font_Private)("FT_Get_PS_Font_Private", lib); 
     121    bindFunc(FT_Get_Sfnt_Table)("FT_Get_Sfnt_Table", lib); 
     122    bindFunc(FT_Load_Sfnt_Table)("FT_Load_Sfnt_Table", lib); 
     123    bindFunc(FT_Sfnt_Table_Info)("FT_Sfnt_Table_Info", lib); 
     124    bindFunc(FT_Get_CMap_Language_ID)("FT_Get_CMap_Language_ID", lib); 
     125    bindFunc(FT_Get_BDF_Charset_ID)("FT_Get_BDF_Charset_ID", lib); 
     126    bindFunc(FT_Get_BDF_Property)("FT_Get_BDF_Property", lib); 
     127    bindFunc(FT_Stream_OpenGzip)("FT_Stream_OpenGzip", lib); 
     128    bindFunc(FT_Stream_OpenLZW)("FT_Stream_OpenLZW", lib);