40 #include FT_FREETYPE_H
42 #include FT_INTERNAL_OBJECTS_H
43 #include FT_INTERNAL_DEBUG_H
56 #ifdef FT_DEBUG_AUTOFIT
58 #include FT_CONFIG_STANDARD_LIBRARY_H
60 extern int _af_debug_disable_horz_hints;
61 extern int _af_debug_disable_vert_hints;
62 extern int _af_debug_disable_blue_hints;
63 extern void* _af_debug_hints;
111 #define AF_ANGLE_PI 256
112 #define AF_ANGLE_2PI ( AF_ANGLE_PI * 2 )
113 #define AF_ANGLE_PI2 ( AF_ANGLE_PI / 2 )
114 #define AF_ANGLE_PI4 ( AF_ANGLE_PI / 4 )
131 af_angle_diff( AF_Angle angle1,
136 #define AF_ANGLE_DIFF( result, angle1, angle2 ) \
138 AF_Angle _delta = (angle2) - (angle1); \
141 _delta %= AF_ANGLE_2PI; \
143 _delta += AF_ANGLE_2PI; \
145 if ( _delta > AF_ANGLE_PI ) \
146 _delta -= AF_ANGLE_2PI; \
193 #define AF_SCALER_EQUAL_SCALES( a, b ) \
194 ( (a)->x_scale == (b)->x_scale && \
195 (a)->y_scale == (b)->y_scale && \
196 (a)->x_delta == (b)->x_delta && \
197 (a)->y_delta == (b)->y_delta )
235 #ifdef FT_OPTION_AUTOFIT2
290 #define AF_UNIRANGE_REC( a, b ) { (FT_UInt32)(a), (FT_UInt32)(b) }
312 #ifndef FT_CONFIG_OPTION_PIC
314 #define AF_DECLARE_SCRIPT_CLASS( script_class ) \
315 FT_CALLBACK_TABLE const AF_ScriptClassRec \
318 #define AF_DEFINE_SCRIPT_CLASS( script_class, script_, ranges, m_size, \
319 m_init, m_scale, m_done, h_init, h_apply ) \
320 FT_CALLBACK_TABLE_DEF const AF_ScriptClassRec \
338 #define AF_DECLARE_SCRIPT_CLASS( script_class ) \
340 FT_Init_Class_##script_class( AF_ScriptClassRec* ac );
342 #define AF_DEFINE_SCRIPT_CLASS( script_class, script_, ranges, m_size, \
343 m_init, m_scale, m_done, h_init, h_apply ) \
344 FT_LOCAL_DEF( void ) \
345 FT_Init_Class_##script_class( AF_ScriptClassRec* ac ) \
347 ac->script = script_; \
348 ac->script_uni_ranges = ranges; \
350 ac->script_metrics_size = m_size; \
352 ac->script_metrics_init = m_init; \
353 ac->script_metrics_scale = m_scale; \
354 ac->script_metrics_done = m_done; \
356 ac->script_hints_init = h_init; \
357 ac->script_hints_apply = h_apply; \
enum AF_Script_ AF_Script
GLenum GLsizei GLenum GLenum const GLvoid * table
struct AF_ScriptMetricsRec_ AF_ScriptMetricsRec
FT_BEGIN_HEADER typedef signed long FT_Pos
void(* AF_Script_ApplyHintsFunc)(AF_GlyphHints hints, FT_Outline *outline, AF_ScriptMetrics metrics)
FT_Bool digits_have_same_width
AF_Script_ScaleMetricsFunc script_metrics_scale
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
struct AF_GlyphHintsRec_ * AF_GlyphHints
AF_Script_InitMetricsFunc script_metrics_init
enum FT_Render_Mode_ FT_Render_Mode
FT_Error(* AF_Script_InitHintsFunc)(AF_GlyphHints hints, AF_ScriptMetrics metrics)
GLuint GLsizei GLsizei GLfloat * metrics
af_sort_widths(FT_UInt count, AF_Width table)
FT_BEGIN_HEADER typedef unsigned char FT_Bool
FT_Offset script_metrics_size
struct AF_ScriptMetricsRec_ * AF_ScriptMetrics
const AF_Script_UniRangeRec * AF_Script_UniRange
FT_Error(* AF_Script_InitMetricsFunc)(AF_ScriptMetrics metrics, FT_Face face)
struct AF_Script_UniRangeRec_ AF_Script_UniRangeRec
struct AF_ScriptClassRec_ const * AF_ScriptClass
AF_Script_InitHintsFunc script_hints_init
AF_Script_UniRange script_uni_ranges
AF_Script_DoneMetricsFunc script_metrics_done
void(* AF_Script_ScaleMetricsFunc)(AF_ScriptMetrics metrics, AF_Scaler scaler)
enum AF_ScalerFlags_ AF_ScalerFlags
struct AF_ScalerRec_ * AF_Scaler
struct AF_ScalerRec_ AF_ScalerRec
FT_BEGIN_HEADER struct AF_WidthRec_ * AF_Width
AF_Script_ApplyHintsFunc script_hints_apply
struct AF_ScriptClassRec_ AF_ScriptClassRec
FT_BEGIN_HEADER struct AF_WidthRec_ AF_WidthRec
FT_Render_Mode render_mode
af_sort_pos(FT_UInt count, FT_Pos *table)
void(* AF_Script_DoneMetricsFunc)(AF_ScriptMetrics metrics)