22 #include FT_INTERNAL_DEBUG_H 32 #define FT_COMPONENT trace_afglobal 37 #define WRITING_SYSTEM( ws, WS ) 45 #define SCRIPT( s, S, d, h, H, ss ) \ 46 AF_DEFINE_SCRIPT_CLASS( \ 47 af_ ## s ## _script_class, \ 49 af_ ## s ## _uniranges, \ 50 af_ ## s ## _nonbase_uniranges, \ 58 #define STYLE( s, S, d, ws, sc, ss, c ) \ 59 AF_DEFINE_STYLE_CLASS( \ 60 af_ ## s ## _style_class, \ 70 #ifndef FT_CONFIG_OPTION_PIC 73 #define WRITING_SYSTEM( ws, WS ) \ 74 &af_ ## ws ## _writing_system_class, 87 #define SCRIPT( s, S, d, h, H, ss ) \ 88 &af_ ## s ## _script_class, 101 #define STYLE( s, S, d, ws, sc, ss, c ) \ 102 &af_ ## s ## _style_class, 116 #ifdef FT_DEBUG_LEVEL_TRACE 119 #define STYLE( s, S, d, ws, sc, ss, c ) #s, 178 if ( style_class->
coverage == AF_COVERAGE_DEFAULT )
181 globals->
module->default_script )
203 if ( gindex == 0 || charcode >
range->last )
232 if ( gindex == 0 || charcode >
range->last )
254 if ( style_class->
coverage == AF_COVERAGE_DEFAULT )
262 for (
i = 0x30;
i <= 0x39;
i++ )
286 gstyles[nn] |= globals->
module->fallback_style;
291 #ifdef FT_DEBUG_LEVEL_TRACE 311 if ( !(
count % 10 ) )
317 if ( !(
count % 10 ) )
350 sizeof ( *globals ) +
366 #ifdef FT_CONFIG_OPTION_USE_HARFBUZZ 367 globals->hb_font = hb_ft_font_create(
face,
NULL );
368 globals->hb_buf = hb_buffer_create();
395 for ( nn = 0; nn < AF_STYLE_MAX; nn++ )
397 if ( globals->metrics[nn] )
408 FT_FREE( globals->metrics[nn] );
412 #ifdef FT_CONFIG_OPTION_USE_HARFBUZZ 413 hb_font_destroy( globals->hb_font );
414 hb_buffer_destroy( globals->hb_buf );
439 if ( gindex >= (
FT_ULong)globals->glyph_count )
447 if (
style == AF_STYLE_NONE_DFLT ||
style + 1 >= AF_STYLE_MAX )
465 metrics->style_class = style_class;
496 if ( gindex < (
FT_ULong)globals->glyph_count )
#define FT_ALLOC(ptr, size)
FT_BEGIN_HEADER struct AF_ModuleRec_ * AF_Module
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
AF_Script_UniRange script_uni_ranges
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
#define FT_LOCAL_ARRAY_DEF(x)
GLuint GLuint GLsizei count
af_writing_system_classes[]
FT_Get_Next_Char(FT_Face face, FT_ULong char_code, FT_UInt *agindex)
static char memory[1024 *256]
af_face_globals_new(FT_Face face, AF_FaceGlobals *aglobals, AF_Module module)
af_face_globals_get_metrics(AF_FaceGlobals globals, FT_UInt gindex, FT_UInt options, AF_StyleMetrics *ametrics)
#define AF_STYLE_CLASSES_GET
FT_BEGIN_HEADER typedef unsigned char FT_Bool
#define AF_SCRIPT_CLASSES_GET
FT_Offset style_metrics_size
#define FT_TRACE4(varformat)
AF_Script_UniRange script_uni_nonbase_ranges
FT_Fixed scale_down_factor
FT_Get_Char_Index(FT_Face face, FT_ULong charcode)
FT_UInt increase_x_height
FT_Select_Charmap(FT_Face face, FT_Encoding encoding)
FT_Error af_shaper_get_coverage(AF_FaceGlobals globals, AF_StyleClass style_class, FT_UShort *gstyles, FT_Bool default_script)
FT_Pos standard_vertical_width
af_face_globals_free(AF_FaceGlobals globals)
AF_WritingSystem_InitMetricsFunc style_metrics_init
AF_WritingSystem writing_system
FT_Set_Charmap(FT_Face face, FT_CharMap charmap)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
af_face_globals_is_digit(AF_FaceGlobals globals, FT_UInt gindex)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define AF_PROP_INCREASE_X_HEIGHT_MAX
AF_WritingSystem_DoneMetricsFunc style_metrics_done
static FT_Error af_face_globals_compute_style_coverage(AF_FaceGlobals globals)
#define AF_STYLE_UNASSIGNED
FT_UShort stem_darkening_for_ppem
FT_Pos standard_horizontal_width
#define AF_WRITING_SYSTEM_CLASSES_GET
GLenum GLuint GLint GLenum face