source: trunk/src/lib/freetype2.cc @ 10

Last change on this file since 10 was 10, checked in by epyon, 12 years ago
  • freetype (2.4.6) dynamic bindings added
File size: 19.9 KB
Line 
1// Copyright (C) 2012-2013 ChaosForge / Kornel Kisielewicz
2// http://chaosforge.org/
3//
4// This file is part of NV Libraries.
5// For conditions of distribution and use, see copyright notice in nv.hh
6
7#include "nv/lib/freetype2.hh"
8
9#if defined( NV_FREETYPE_DYNAMIC )
10
11#include "nv/library.hh"
12
13FT_Error (NV_FREETYPE_APIENTRY *FT_Init_FreeType) (  FT_Library  *alibrary  ) = nullptr;
14FT_Error (NV_FREETYPE_APIENTRY *FT_Done_FreeType) (  FT_Library  library  ) = nullptr;
15FT_Error (NV_FREETYPE_APIENTRY *FT_New_Face) (  FT_Library library, const char*  filepathname, FT_Long face_index, FT_Face *aface  ) = nullptr;
16FT_Error (NV_FREETYPE_APIENTRY *FT_New_Memory_Face) (  FT_Library library, const FT_Byte*  file_base, FT_Long file_size, FT_Long face_index, FT_Face *aface  ) = nullptr;
17FT_Error (NV_FREETYPE_APIENTRY *FT_Open_Face) (  FT_Library library, const FT_Open_Args*  args, FT_Long face_index, FT_Face *aface  ) = nullptr;
18FT_Error (NV_FREETYPE_APIENTRY *FT_Attach_File) (  FT_Face face, const char*  filepathname  ) = nullptr;
19FT_Error (NV_FREETYPE_APIENTRY *FT_Attach_Stream) (  FT_Face face, FT_Open_Args* parameters  ) = nullptr;
20FT_Error (NV_FREETYPE_APIENTRY *FT_Reference_Face) (  FT_Face  face  ) = nullptr;
21FT_Error (NV_FREETYPE_APIENTRY *FT_Done_Face) (  FT_Face  face  ) = nullptr;
22FT_Error (NV_FREETYPE_APIENTRY *FT_Select_Size) (  FT_Face face, FT_Int strike_index  ) = nullptr;
23FT_Error (NV_FREETYPE_APIENTRY *FT_Request_Size) (  FT_Face face, FT_Size_Request req  ) = nullptr;
24FT_Error (NV_FREETYPE_APIENTRY *FT_Set_Char_Size) (  FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution  ) = nullptr;
25FT_Error (NV_FREETYPE_APIENTRY *FT_Set_Pixel_Sizes) (  FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height  ) = nullptr;
26FT_Error (NV_FREETYPE_APIENTRY *FT_Load_Glyph) (  FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags  ) = nullptr;
27FT_Error (NV_FREETYPE_APIENTRY *FT_Load_Char) (  FT_Face face, FT_ULong char_code, FT_Int32 load_flags  ) = nullptr;
28void (NV_FREETYPE_APIENTRY *FT_Set_Transform) (  FT_Face face, FT_Matrix* matrix, FT_Vector* delta  ) = nullptr;
29FT_Error (NV_FREETYPE_APIENTRY *FT_Render_Glyph) (  FT_GlyphSlot slot, FT_Render_Mode render_mode  ) = nullptr;
30FT_Error (NV_FREETYPE_APIENTRY *FT_Get_Kerning) (  FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning  ) = nullptr;
31FT_Error (NV_FREETYPE_APIENTRY *FT_Get_Track_Kerning) (  FT_Face face, FT_Fixed point_size, FT_Int degree, FT_Fixed* akerning  ) = nullptr;
32FT_Error (NV_FREETYPE_APIENTRY *FT_Get_Glyph_Name) (  FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max  ) = nullptr;
33const char* (NV_FREETYPE_APIENTRY *FT_Get_Postscript_Name) (  FT_Face face  ) = nullptr;
34FT_Error (NV_FREETYPE_APIENTRY *FT_Select_Charmap) (  FT_Face face, FT_Encoding  encoding  ) = nullptr;
35FT_Error (NV_FREETYPE_APIENTRY *FT_Set_Charmap) (  FT_Face face, FT_CharMap charmap  ) = nullptr;
36FT_Int (NV_FREETYPE_APIENTRY *FT_Get_Charmap_Index) (  FT_CharMap charmap  ) = nullptr;
37FT_UInt (NV_FREETYPE_APIENTRY *FT_Get_Char_Index) (  FT_Face face, FT_ULong charcode  ) = nullptr;
38FT_ULong (NV_FREETYPE_APIENTRY *FT_Get_First_Char) (  FT_Face face, FT_UInt *agindex  ) = nullptr;
39FT_ULong (NV_FREETYPE_APIENTRY *FT_Get_Next_Char) (  FT_Face face, FT_ULong char_code, FT_UInt *agindex  ) = nullptr;
40FT_UInt (NV_FREETYPE_APIENTRY *FT_Get_Name_Index) (  FT_Face face, FT_String* glyph_name  ) = nullptr;
41FT_Error (NV_FREETYPE_APIENTRY *FT_Get_SubGlyph_Info) (  FT_GlyphSlot glyph, FT_UInt sub_index, FT_Int *p_index, FT_UInt *p_flags, FT_Int *p_arg1, FT_Int *p_arg2, FT_Matrix *p_transform  ) = nullptr;
42FT_UShort (NV_FREETYPE_APIENTRY *FT_Get_FSType_Flags) (  FT_Face  face  ) = nullptr;
43FT_UInt (NV_FREETYPE_APIENTRY *FT_Face_GetCharVariantIndex) (  FT_Face face, FT_ULong charcode, FT_ULong variantSelector  ) = nullptr;
44FT_Int (NV_FREETYPE_APIENTRY *FT_Face_GetCharVariantIsDefault) (  FT_Face face, FT_ULong charcode, FT_ULong variantSelector  ) = nullptr;
45FT_UInt32* (NV_FREETYPE_APIENTRY *FT_Face_GetVariantSelectors) (  FT_Face face  ) = nullptr;
46FT_UInt32* (NV_FREETYPE_APIENTRY *FT_Face_GetVariantsOfChar) (  FT_Face face, FT_ULong charcode  ) = nullptr;
47FT_UInt32* (NV_FREETYPE_APIENTRY *FT_Face_GetCharsOfVariant) (  FT_Face face, FT_ULong variantSelector  ) = nullptr;
48FT_Long (NV_FREETYPE_APIENTRY *FT_MulFix) (  FT_Long  a, FT_Long  b  ) = nullptr;
49FT_Long (NV_FREETYPE_APIENTRY *FT_DivFix) (  FT_Long  a, FT_Long  b  ) = nullptr;
50FT_Fixed (NV_FREETYPE_APIENTRY *FT_RoundFix) (  FT_Fixed  a  ) = nullptr;
51FT_Fixed (NV_FREETYPE_APIENTRY *FT_CeilFix) (  FT_Fixed  a  ) = nullptr;
52FT_Fixed (NV_FREETYPE_APIENTRY *FT_FloorFix) (  FT_Fixed  a  ) = nullptr;
53void (NV_FREETYPE_APIENTRY *FT_Vector_Transform) (  FT_Vector* vec, const FT_Matrix*  matrix  ) = nullptr;
54void (NV_FREETYPE_APIENTRY *FT_Library_Version) (  FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch  ) = nullptr;
55FT_Error (NV_FREETYPE_APIENTRY *FT_Get_Glyph) (  FT_GlyphSlot slot, FT_Glyph *aglyph  ) = nullptr;
56FT_Error (NV_FREETYPE_APIENTRY *FT_Glyph_Copy) (  FT_Glyph source, FT_Glyph *target  ) = nullptr;
57FT_Error (NV_FREETYPE_APIENTRY *FT_Glyph_Transform) (  FT_Glyph glyph, FT_Matrix* matrix, FT_Vector* delta  ) = nullptr;
58void (NV_FREETYPE_APIENTRY *FT_Glyph_Get_CBox) (  FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox  *acbox  ) = nullptr;
59FT_Error (NV_FREETYPE_APIENTRY *FT_Glyph_To_Bitmap) (  FT_Glyph* the_glyph, FT_Render_Mode render_mode, FT_Vector* origin, FT_Bool destroy  ) = nullptr;
60void (NV_FREETYPE_APIENTRY *FT_Done_Glyph) (  FT_Glyph  glyph  ) = nullptr;
61void (NV_FREETYPE_APIENTRY *FT_Matrix_Multiply) (  const FT_Matrix*  a, FT_Matrix*        b  ) = nullptr;
62FT_Error (NV_FREETYPE_APIENTRY *FT_Matrix_Invert) (  FT_Matrix*  matrix  ) = nullptr;
63FT_Renderer (NV_FREETYPE_APIENTRY *FT_Get_Renderer) (  FT_Library library, FT_Glyph_Format format  ) = nullptr;
64FT_Error (NV_FREETYPE_APIENTRY *FT_Set_Renderer) (  FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter* parameters  ) = nullptr;
65FT_Error (NV_FREETYPE_APIENTRY *FT_Add_Module) (  FT_Library library, const FT_Module_Class*  clazz  ) = nullptr;
66FT_Module (NV_FREETYPE_APIENTRY *FT_Get_Module) (  FT_Library library, const char*  module_name  ) = nullptr;
67FT_Error (NV_FREETYPE_APIENTRY *FT_Remove_Module) (  FT_Library  library, FT_Module   module  ) = nullptr;
68FT_Error (NV_FREETYPE_APIENTRY *FT_Reference_Library) (  FT_Library  library  ) = nullptr;
69FT_Error (NV_FREETYPE_APIENTRY *FT_New_Library) (  FT_Memory memory, FT_Library  *alibrary  ) = nullptr;
70FT_Error (NV_FREETYPE_APIENTRY *FT_Done_Library) (  FT_Library  library  ) = nullptr;
71void (NV_FREETYPE_APIENTRY *FT_Set_Debug_Hook) (  FT_Library library, FT_UInt hook_index, FT_DebugHook_Func  debug_hook  ) = nullptr;
72void (NV_FREETYPE_APIENTRY *FT_Add_Default_Modules) (  FT_Library  library  ) = nullptr;
73FT_TrueTypeEngineType (NV_FREETYPE_APIENTRY *FT_Get_TrueType_Engine_Type) (  FT_Library  library  ) = nullptr;
74FT_Error (NV_FREETYPE_APIENTRY *FT_Get_Advance) (  FT_Face face, FT_UInt gindex, FT_Int32 load_flags, FT_Fixed *padvance  ) = nullptr;
75FT_Error (NV_FREETYPE_APIENTRY *FT_Get_Advances) (  FT_Face face, FT_UInt start, FT_UInt count, FT_Int32 load_flags, FT_Fixed *padvances  ) = nullptr;
76FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Decompose) (  FT_Outline* outline, const FT_Outline_Funcs*  func_interface, void* user  ) = nullptr;
77FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_New) (  FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline  *anoutline  ) = nullptr;
78FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_New_Internal) (  FT_Memory memory, FT_UInt numPoints, FT_Int numContours, FT_Outline  *anoutline  ) = nullptr;
79FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Done) (  FT_Library library, FT_Outline*  outline  ) = nullptr;
80FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Done_Internal) (  FT_Memory memory, FT_Outline* outline  ) = nullptr;
81FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Check) (  FT_Outline*  outline  ) = nullptr;
82void (NV_FREETYPE_APIENTRY *FT_Outline_Get_CBox) (  const FT_Outline* outline, FT_BBox *acbox  ) = nullptr;
83void (NV_FREETYPE_APIENTRY *FT_Outline_Translate) (  const FT_Outline* outline, FT_Pos xOffset, FT_Pos yOffset  ) = nullptr;
84FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Copy) (  const FT_Outline* source, FT_Outline *target  ) = nullptr;
85void (NV_FREETYPE_APIENTRY *FT_Outline_Transform) (  const FT_Outline* outline, const FT_Matrix* matrix  ) = nullptr;
86FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Embolden) (  FT_Outline* outline, FT_Pos strength  ) = nullptr;
87void (NV_FREETYPE_APIENTRY *FT_Outline_Reverse) (  FT_Outline*  outline  ) = nullptr;
88FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Get_Bitmap) (  FT_Library library, FT_Outline* outline, const FT_Bitmap *abitmap  ) = nullptr;
89FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Render) (  FT_Library library, FT_Outline* outline, FT_Raster_Params* params  ) = nullptr;
90FT_Orientation (NV_FREETYPE_APIENTRY *FT_Outline_Get_Orientation) (  FT_Outline*  outline  ) = nullptr;
91FT_Error (NV_FREETYPE_APIENTRY *FT_Outline_Get_BBox) (  FT_Outline* outline, FT_BBox *abbox  ) = nullptr;
92void (NV_FREETYPE_APIENTRY *FT_Bitmap_New) (  FT_Bitmap  *abitmap  ) = nullptr;
93FT_Error (NV_FREETYPE_APIENTRY *FT_Bitmap_Copy) (  FT_Library library, const FT_Bitmap *source, FT_Bitmap *target  ) = nullptr;
94FT_Error (NV_FREETYPE_APIENTRY *FT_Bitmap_Embolden) (  FT_Library library, FT_Bitmap* bitmap, FT_Pos xStrength, FT_Pos yStrength  ) = nullptr;
95FT_Error (NV_FREETYPE_APIENTRY *FT_Bitmap_Convert) (  FT_Library library, const FT_Bitmap *source, FT_Bitmap *target, FT_Int alignment  ) = nullptr;
96FT_Error (NV_FREETYPE_APIENTRY *FT_GlyphSlot_Own_Bitmap) (  FT_GlyphSlot  slot  ) = nullptr;
97FT_Error (NV_FREETYPE_APIENTRY *FT_Bitmap_Done) (  FT_Library library, FT_Bitmap *bitmap  ) = nullptr;
98FT_Error (NV_FREETYPE_APIENTRY *FT_Get_BDF_Charset_ID) (  FT_Face face, const char* *acharset_encoding, const char* *acharset_registry  ) = nullptr;
99FT_Error (NV_FREETYPE_APIENTRY *FT_Get_BDF_Property) (  FT_Face face, const char* prop_name, BDF_PropertyRec *aproperty  ) = nullptr;
100FT_Error (NV_FREETYPE_APIENTRY *FT_Get_CID_Registry_Ordering_Supplement) (  FT_Face face, const char* *registry, const char* *ordering, FT_Int *supplement  ) = nullptr;
101FT_Error (NV_FREETYPE_APIENTRY *FT_Get_CID_Is_Internally_CID_Keyed) (  FT_Face face, FT_Bool *is_cid  ) = nullptr;
102FT_Error (NV_FREETYPE_APIENTRY *FT_Get_CID_From_Glyph_Index) (  FT_Face face, FT_UInt glyph_index, FT_UInt *cid  ) = nullptr;
103FT_Error (NV_FREETYPE_APIENTRY *FT_Get_PFR_Metrics) (  FT_Face face, FT_UInt *aoutline_resolution, FT_UInt   *ametrics_resolution, FT_Fixed  *ametrics_x_scale, FT_Fixed  *ametrics_y_scale  ) = nullptr;
104FT_Error (NV_FREETYPE_APIENTRY *FT_Get_PFR_Kerning) (  FT_Face face, FT_UInt left, FT_UInt right, FT_Vector  *avector  ) = nullptr;
105FT_Error (NV_FREETYPE_APIENTRY *FT_Get_PFR_Advance) (  FT_Face face, FT_UInt gindex, FT_Pos *aadvance  ) = nullptr;
106FT_Int (NV_FREETYPE_APIENTRY *FT_Get_Gasp) (  FT_Face face, FT_UInt ppem  ) = nullptr;
107FT_Error (NV_FREETYPE_APIENTRY *FT_New_Size) (  FT_Face face, FT_Size* size  ) = nullptr;
108FT_Error (NV_FREETYPE_APIENTRY *FT_Done_Size) (  FT_Size size  ) = nullptr;
109FT_Error (NV_FREETYPE_APIENTRY *FT_Activate_Size) (  FT_Size  size  ) = nullptr;
110FT_UInt (NV_FREETYPE_APIENTRY *FT_Get_Sfnt_Name_Count) (  FT_Face  face  ) = nullptr;
111FT_Error (NV_FREETYPE_APIENTRY *FT_Get_Sfnt_Name) (  FT_Face face, FT_UInt idx, FT_SfntName  *aname  ) = nullptr;
112
113FT_StrokerBorder (NV_FREETYPE_APIENTRY *FT_Outline_GetInsideBorder) (  FT_Outline* outline  ) = nullptr;
114FT_StrokerBorder (NV_FREETYPE_APIENTRY *FT_Outline_GetOutsideBorder) (  FT_Outline* outline  ) = nullptr;
115FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_New) (  FT_Library library, FT_Stroker *astroker  ) = nullptr;
116void (NV_FREETYPE_APIENTRY *FT_Stroker_Set) (  FT_Stroker stroker, FT_Fixed radius, FT_Stroker_LineCap line_cap, FT_Stroker_LineJoin line_join, FT_Fixed miter_limit  ) = nullptr;
117void (NV_FREETYPE_APIENTRY *FT_Stroker_Rewind) (  FT_Stroker stroker  ) = nullptr;
118FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_ParseOutline) (  FT_Stroker stroker, FT_Outline* outline, FT_Bool opened  ) = nullptr;
119FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_BeginSubPath) (  FT_Stroker stroker, FT_Vector* to, FT_Bool open  ) = nullptr;
120FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_EndSubPath) (  FT_Stroker stroker  ) = nullptr;
121FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_LineTo) (  FT_Stroker stroker, FT_Vector* to  ) = nullptr;
122FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_ConicTo) (  FT_Stroker stroker, FT_Vector* control, FT_Vector* to  ) = nullptr;
123FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_CubicTo) (  FT_Stroker stroker, FT_Vector* control1, FT_Vector* control2, FT_Vector* to  ) = nullptr;
124FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_GetBorderCounts) (  FT_Stroker stroker, FT_StrokerBorder border, FT_UInt *anum_points, FT_UInt *anum_contours  ) = nullptr;
125void (NV_FREETYPE_APIENTRY *FT_Stroker_ExportBorder) (  FT_Stroker stroker, FT_StrokerBorder border, FT_Outline* outline  ) = nullptr;
126FT_Error (NV_FREETYPE_APIENTRY *FT_Stroker_GetCounts) (  FT_Stroker stroker, FT_UInt *anum_points, FT_UInt *anum_contours  ) = nullptr;
127void (NV_FREETYPE_APIENTRY *FT_Stroker_Export) (  FT_Stroker stroker, FT_Outline* outline  ) = nullptr;
128void (NV_FREETYPE_APIENTRY *FT_Stroker_Done) (  FT_Stroker stroker  ) = nullptr;
129FT_Error (NV_FREETYPE_APIENTRY *FT_Glyph_Stroke) (  FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool destroy  ) = nullptr;
130FT_Error (NV_FREETYPE_APIENTRY *FT_Glyph_StrokeBorder) (  FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool inside, FT_Bool destroy  ) = nullptr;
131
132FT_Fixed (NV_FREETYPE_APIENTRY *FT_Sin) (  FT_Angle angle  ) = nullptr;
133FT_Fixed (NV_FREETYPE_APIENTRY *FT_Cos) (  FT_Angle angle  ) = nullptr;
134FT_Fixed (NV_FREETYPE_APIENTRY *FT_Tan) (  FT_Angle angle  ) = nullptr;
135FT_Angle (NV_FREETYPE_APIENTRY *FT_Atan2) (  FT_Fixed x, FT_Fixed  y  ) = nullptr;
136FT_Angle (NV_FREETYPE_APIENTRY *FT_Angle_Diff) (  FT_Angle angle1, FT_Angle  angle2  ) = nullptr;
137void (NV_FREETYPE_APIENTRY *FT_Vector_Unit) (  FT_Vector* vec, FT_Angle angle  ) = nullptr;
138void (NV_FREETYPE_APIENTRY *FT_Vector_Rotate) (  FT_Vector* vec, FT_Angle angle  ) = nullptr;
139FT_Fixed (NV_FREETYPE_APIENTRY *FT_Vector_Length) (  FT_Vector* vec  ) = nullptr;
140void (NV_FREETYPE_APIENTRY *FT_Vector_Polarize) (  FT_Vector* vec, FT_Fixed *length, FT_Angle *angle  ) = nullptr;
141void (NV_FREETYPE_APIENTRY *FT_Vector_From_Polar) (  FT_Vector* vec, FT_Fixed length, FT_Angle angle  ) = nullptr;
142
143bool nv::load_freetype_library( const char* path )
144{
145#       define NV_FREETYPE_LOAD( symbol ) *(void **) (&symbol) = freetype_library.get(#symbol);
146        static nv::library freetype_library( path );
147
148        NV_FREETYPE_LOAD( FT_Init_FreeType );
149        NV_FREETYPE_LOAD( FT_Done_FreeType );
150        NV_FREETYPE_LOAD( FT_New_Face );
151        NV_FREETYPE_LOAD( FT_New_Memory_Face );
152        NV_FREETYPE_LOAD( FT_Open_Face );
153        NV_FREETYPE_LOAD( FT_Attach_File );
154        NV_FREETYPE_LOAD( FT_Attach_Stream );
155        NV_FREETYPE_LOAD( FT_Reference_Face );
156        NV_FREETYPE_LOAD( FT_Done_Face );
157        NV_FREETYPE_LOAD( FT_Select_Size );
158        NV_FREETYPE_LOAD( FT_Request_Size );
159        NV_FREETYPE_LOAD( FT_Set_Char_Size );
160        NV_FREETYPE_LOAD( FT_Set_Pixel_Sizes );
161        NV_FREETYPE_LOAD( FT_Load_Glyph );
162        NV_FREETYPE_LOAD( FT_Load_Char );
163        NV_FREETYPE_LOAD( FT_Set_Transform );
164        NV_FREETYPE_LOAD( FT_Render_Glyph );
165        NV_FREETYPE_LOAD( FT_Get_Kerning );
166        NV_FREETYPE_LOAD( FT_Get_Track_Kerning );
167        NV_FREETYPE_LOAD( FT_Get_Glyph_Name );
168        NV_FREETYPE_LOAD( FT_Get_Postscript_Name );
169        NV_FREETYPE_LOAD( FT_Select_Charmap );
170        NV_FREETYPE_LOAD( FT_Set_Charmap );
171        NV_FREETYPE_LOAD( FT_Get_Charmap_Index );
172        NV_FREETYPE_LOAD( FT_Get_Char_Index );
173        NV_FREETYPE_LOAD( FT_Get_First_Char );
174        NV_FREETYPE_LOAD( FT_Get_Next_Char );
175        NV_FREETYPE_LOAD( FT_Get_Name_Index );
176        NV_FREETYPE_LOAD( FT_Get_SubGlyph_Info );
177        NV_FREETYPE_LOAD( FT_Get_FSType_Flags );
178        NV_FREETYPE_LOAD( FT_Face_GetCharVariantIndex );
179        NV_FREETYPE_LOAD( FT_Face_GetCharVariantIsDefault );
180        NV_FREETYPE_LOAD( FT_Face_GetVariantSelectors );
181        NV_FREETYPE_LOAD( FT_Face_GetVariantsOfChar );
182        NV_FREETYPE_LOAD( FT_Face_GetCharsOfVariant );
183        NV_FREETYPE_LOAD( FT_MulFix );
184        NV_FREETYPE_LOAD( FT_DivFix );
185        NV_FREETYPE_LOAD( FT_RoundFix );
186        NV_FREETYPE_LOAD( FT_CeilFix );
187        NV_FREETYPE_LOAD( FT_FloorFix );
188        NV_FREETYPE_LOAD( FT_Vector_Transform );
189        NV_FREETYPE_LOAD( FT_Library_Version );
190        NV_FREETYPE_LOAD( FT_Get_Glyph );
191        NV_FREETYPE_LOAD( FT_Glyph_Copy );
192        NV_FREETYPE_LOAD( FT_Glyph_Transform );
193        NV_FREETYPE_LOAD( FT_Glyph_Get_CBox );
194        NV_FREETYPE_LOAD( FT_Glyph_To_Bitmap );
195        NV_FREETYPE_LOAD( FT_Done_Glyph );
196        NV_FREETYPE_LOAD( FT_Matrix_Multiply );
197        NV_FREETYPE_LOAD( FT_Matrix_Invert );
198        NV_FREETYPE_LOAD( FT_Get_Renderer );
199        NV_FREETYPE_LOAD( FT_Set_Renderer );
200        NV_FREETYPE_LOAD( FT_Add_Module );
201        NV_FREETYPE_LOAD( FT_Get_Module );
202        NV_FREETYPE_LOAD( FT_Remove_Module );
203        NV_FREETYPE_LOAD( FT_Reference_Library );
204        NV_FREETYPE_LOAD( FT_New_Library );
205        NV_FREETYPE_LOAD( FT_Done_Library );
206        NV_FREETYPE_LOAD( FT_Set_Debug_Hook );
207        NV_FREETYPE_LOAD( FT_Add_Default_Modules );
208        NV_FREETYPE_LOAD( FT_Get_TrueType_Engine_Type );
209        NV_FREETYPE_LOAD( FT_Get_Advance );
210        NV_FREETYPE_LOAD( FT_Get_Advances );
211        NV_FREETYPE_LOAD( FT_Outline_Decompose );
212        NV_FREETYPE_LOAD( FT_Outline_New );
213        NV_FREETYPE_LOAD( FT_Outline_New_Internal );
214        NV_FREETYPE_LOAD( FT_Outline_Done );
215        NV_FREETYPE_LOAD( FT_Outline_Done_Internal );
216        NV_FREETYPE_LOAD( FT_Outline_Check );
217        NV_FREETYPE_LOAD( FT_Outline_Get_CBox );
218        NV_FREETYPE_LOAD( FT_Outline_Translate );
219        NV_FREETYPE_LOAD( FT_Outline_Copy );
220        NV_FREETYPE_LOAD( FT_Outline_Transform );
221        NV_FREETYPE_LOAD( FT_Outline_Embolden );
222        NV_FREETYPE_LOAD( FT_Outline_Reverse );
223        NV_FREETYPE_LOAD( FT_Outline_Get_Bitmap );
224        NV_FREETYPE_LOAD( FT_Outline_Render );
225        NV_FREETYPE_LOAD( FT_Outline_Get_Orientation );
226        NV_FREETYPE_LOAD( FT_Outline_Get_BBox );
227        NV_FREETYPE_LOAD( FT_Bitmap_New );
228        NV_FREETYPE_LOAD( FT_Bitmap_Copy );
229        NV_FREETYPE_LOAD( FT_Bitmap_Embolden );
230        NV_FREETYPE_LOAD( FT_Bitmap_Convert );
231        NV_FREETYPE_LOAD( FT_GlyphSlot_Own_Bitmap );
232        NV_FREETYPE_LOAD( FT_Bitmap_Done );
233        NV_FREETYPE_LOAD( FT_Get_BDF_Charset_ID );
234        NV_FREETYPE_LOAD( FT_Get_BDF_Property );
235        NV_FREETYPE_LOAD( FT_Get_CID_Registry_Ordering_Supplement );
236        NV_FREETYPE_LOAD( FT_Get_CID_Is_Internally_CID_Keyed );
237        NV_FREETYPE_LOAD( FT_Get_CID_From_Glyph_Index );
238        NV_FREETYPE_LOAD( FT_Get_PFR_Metrics );
239        NV_FREETYPE_LOAD( FT_Get_PFR_Kerning );
240        NV_FREETYPE_LOAD( FT_Get_PFR_Advance );
241        NV_FREETYPE_LOAD( FT_Get_Gasp );
242        NV_FREETYPE_LOAD( FT_New_Size );
243        NV_FREETYPE_LOAD( FT_Done_Size );
244        NV_FREETYPE_LOAD( FT_Activate_Size );
245        NV_FREETYPE_LOAD( FT_Get_Sfnt_Name_Count );
246        NV_FREETYPE_LOAD( FT_Get_Sfnt_Name );
247
248        NV_FREETYPE_LOAD( FT_Outline_GetInsideBorder );
249        NV_FREETYPE_LOAD( FT_Outline_GetOutsideBorder );
250        NV_FREETYPE_LOAD( FT_Stroker_New );
251        NV_FREETYPE_LOAD( FT_Stroker_Set );
252        NV_FREETYPE_LOAD( FT_Stroker_Rewind );
253        NV_FREETYPE_LOAD( FT_Stroker_ParseOutline );
254        NV_FREETYPE_LOAD( FT_Stroker_BeginSubPath );
255        NV_FREETYPE_LOAD( FT_Stroker_EndSubPath );
256        NV_FREETYPE_LOAD( FT_Stroker_LineTo );
257        NV_FREETYPE_LOAD( FT_Stroker_ConicTo );
258        NV_FREETYPE_LOAD( FT_Stroker_CubicTo );
259        NV_FREETYPE_LOAD( FT_Stroker_GetBorderCounts );
260        NV_FREETYPE_LOAD( FT_Stroker_ExportBorder );
261        NV_FREETYPE_LOAD( FT_Stroker_GetCounts );
262        NV_FREETYPE_LOAD( FT_Stroker_Export );
263        NV_FREETYPE_LOAD( FT_Stroker_Done );
264        NV_FREETYPE_LOAD( FT_Glyph_Stroke );
265        NV_FREETYPE_LOAD( FT_Glyph_StrokeBorder );
266
267        NV_FREETYPE_LOAD( FT_Sin );
268        NV_FREETYPE_LOAD( FT_Cos );
269        NV_FREETYPE_LOAD( FT_Tan );
270        NV_FREETYPE_LOAD( FT_Atan2 );
271        NV_FREETYPE_LOAD( FT_Angle_Diff );
272        NV_FREETYPE_LOAD( FT_Vector_Unit );
273        NV_FREETYPE_LOAD( FT_Vector_Rotate );
274        NV_FREETYPE_LOAD( FT_Vector_Length );
275        NV_FREETYPE_LOAD( FT_Vector_Polarize );
276        NV_FREETYPE_LOAD( FT_Vector_From_Polar );
277
278#       undef NV_FREETYPE_LOAD
279        return true;
280}
281#endif
Note: See TracBrowser for help on using the repository browser.