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;
112 #define AF_ANGLE_PI 256 113 #define AF_ANGLE_2PI ( AF_ANGLE_PI * 2 ) 114 #define AF_ANGLE_PI2 ( AF_ANGLE_PI / 2 ) 115 #define AF_ANGLE_PI4 ( AF_ANGLE_PI / 4 ) 137 #define AF_ANGLE_DIFF( result, angle1, angle2 ) \ 139 AF_Angle _delta = (angle2) - (angle1); \ 142 _delta %= AF_ANGLE_2PI; \ 144 _delta += AF_ANGLE_2PI; \ 146 if ( _delta > AF_ANGLE_PI ) \ 147 _delta -= AF_ANGLE_2PI; \ 194 #define AF_SCALER_EQUAL_SCALES( a, b ) \ 195 ( (a)->x_scale == (b)->x_scale && \ 196 (a)->y_scale == (b)->y_scale && \ 197 (a)->x_delta == (b)->x_delta && \ 198 (a)->y_delta == (b)->y_delta ) 236 #ifdef FT_OPTION_AUTOFIT2 237 AF_SCRIPT_LATIN2 = 4,
294 #define AF_UNIRANGE_REC( a, b ) { (FT_UInt32)(a), (FT_UInt32)(b) } 317 #ifndef FT_CONFIG_OPTION_PIC 319 #define AF_DECLARE_SCRIPT_CLASS( script_class ) \ 320 FT_CALLBACK_TABLE const AF_ScriptClassRec \ 323 #define AF_DEFINE_SCRIPT_CLASS( script_class, script_, ranges, def_char, \ 325 m_init, m_scale, m_done, h_init, h_apply ) \ 326 FT_CALLBACK_TABLE_DEF const AF_ScriptClassRec script_class = \ 344 #define AF_DECLARE_SCRIPT_CLASS( script_class ) \ 346 FT_Init_Class_ ## script_class( AF_ScriptClassRec* ac ); 348 #define AF_DEFINE_SCRIPT_CLASS( script_class, script_, ranges, def_char, \ 350 m_init, m_scale, m_done, h_init, h_apply ) \ 351 FT_LOCAL_DEF( void ) \ 352 FT_Init_Class_ ## script_class( AF_ScriptClassRec* ac ) \ 354 ac->script = script_; \ 355 ac->script_uni_ranges = ranges; \ 356 ac->default_char = def_char; \ 358 ac->script_metrics_size = m_size; \ 360 ac->script_metrics_init = m_init; \ 361 ac->script_metrics_scale = m_scale; \ 362 ac->script_metrics_done = m_done; \ 364 ac->script_hints_init = h_init; \ 365 ac->script_hints_apply = h_apply; \ enum AF_Script_ AF_Script
af_sort_and_quantize_widths(FT_UInt *count, AF_Width widths, FT_Pos threshold)
struct AF_ScriptMetricsRec_ AF_ScriptMetricsRec
FT_BEGIN_HEADER typedef signed long FT_Pos
FT_Bool digits_have_same_width
AF_Script_ScaleMetricsFunc script_metrics_scale
struct AF_GlyphHintsRec_ * AF_GlyphHints
AF_Script_InitMetricsFunc script_metrics_init
enum FT_Render_Mode_ FT_Render_Mode
void(* AF_Script_DoneMetricsFunc)(AF_ScriptMetrics metrics)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
FT_BEGIN_HEADER typedef unsigned char FT_Bool
FT_Error(* AF_Script_InitHintsFunc)(AF_GlyphHints hints, AF_ScriptMetrics metrics)
FT_Offset script_metrics_size
GLenum GLuint GLint GLenum face
struct AF_ScriptMetricsRec_ * AF_ScriptMetrics
const AF_Script_UniRangeRec * AF_Script_UniRange
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
void(* AF_Script_ApplyHintsFunc)(AF_GlyphHints hints, FT_Outline *outline, AF_ScriptMetrics metrics)
AF_Script_DoneMetricsFunc script_metrics_done
af_sort_pos(FT_UInt count, FT_Pos *table)
enum AF_ScalerFlags_ AF_ScalerFlags
struct AF_ScalerRec_ * AF_Scaler
struct AF_ScalerRec_ AF_ScalerRec
FT_BEGIN_HEADER struct AF_WidthRec_ * AF_Width
struct AF_FaceGlobalsRec_ * AF_FaceGlobals
AF_Script_ApplyHintsFunc script_hints_apply
struct AF_ScriptClassRec_ AF_ScriptClassRec
FT_Error(* AF_Script_InitMetricsFunc)(AF_ScriptMetrics metrics, FT_Face face)
FT_BEGIN_HEADER struct AF_WidthRec_ AF_WidthRec
GLuint GLuint GLsizei count
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
FT_Render_Mode render_mode
void(* AF_Script_ScaleMetricsFunc)(AF_ScriptMetrics metrics, AF_Scaler scaler)
GLenum GLsizei GLenum GLenum const GLvoid * table