Home | History | Annotate | Download | only in autofit

Lines Matching defs:globals

79   af_face_globals_compute_script_coverage( AF_FaceGlobals  globals )
82 FT_Face face = globals->face;
84 FT_Byte* gscripts = globals->glyph_scripts;
89 FT_MEM_SET( globals->glyph_scripts,
91 globals->glyph_count );
127 gindex < (FT_ULong)globals->glyph_count &&
138 if ( gindex < (FT_ULong)globals->glyph_count &&
151 if ( gindex != 0 && gindex < (FT_ULong)globals->glyph_count )
164 for ( nn = 0; nn < globals->glyph_count; nn++ )
185 AF_FaceGlobals globals = NULL;
190 if ( !FT_ALLOC( globals, sizeof ( *globals ) +
193 globals->face = face;
194 globals->glyph_count = face->num_glyphs;
195 globals->glyph_scripts = (FT_Byte*)( globals + 1 );
197 error = af_face_globals_compute_script_coverage( globals );
200 af_face_globals_free( globals );
201 globals = NULL;
205 *aglobals = globals;
211 af_face_globals_free( AF_FaceGlobals globals )
213 if ( globals )
215 FT_Memory memory = globals->face->memory;
221 if ( globals->metrics[nn] )
226 FT_ASSERT( globals->metrics[nn]->clazz == clazz );
229 clazz->script_metrics_done( globals->metrics[nn] );
231 FT_FREE( globals->metrics[nn] );
235 globals->glyph_count = 0;
236 globals->glyph_scripts = NULL; /* no need to free this one! */
237 globals->face = NULL;
239 FT_FREE( globals );
245 af_face_globals_get_metrics( AF_FaceGlobals globals,
259 if ( gindex >= (FT_ULong)globals->glyph_count )
267 gidx = globals->glyph_scripts[gindex] & AF_SCRIPT_LIST_NONE;
273 metrics = globals->metrics[clazz->script];
277 FT_Memory memory = globals->face->memory;
287 error = clazz->script_metrics_init( metrics, globals->face );
298 globals->metrics[clazz->script] = metrics;
309 af_face_globals_is_digit( AF_FaceGlobals globals,
312 if ( gindex < (FT_ULong)globals->glyph_count )
313 return (FT_Bool)( globals->glyph_scripts[gindex] & AF_DIGIT );