Home | History | Annotate | Download | only in autofit

Lines Matching refs:globals

56   af_face_globals_compute_script_coverage( AF_FaceGlobals  globals )
59 FT_Face face = globals->face;
61 FT_Byte* gscripts = globals->glyph_scripts;
67 FT_MEM_SET( globals->glyph_scripts,
69 globals->glyph_count );
105 gindex < (FT_ULong)globals->glyph_count &&
116 if ( gindex < (FT_ULong)globals->glyph_count &&
129 if ( gindex != 0 && gindex < (FT_ULong)globals->glyph_count )
138 if ( globals->module->fallback_script != AF_SCRIPT_NONE )
143 for ( nn = 0; nn < globals->glyph_count; nn++ )
148 gscripts[nn] |= globals->module->fallback_script;
165 AF_FaceGlobals globals = NULL;
170 if ( FT_ALLOC( globals, sizeof ( *globals ) +
174 globals->face = face;
175 globals->glyph_count = face->num_glyphs;
176 globals->glyph_scripts = (FT_Byte*)( globals + 1 );
177 globals->module = module;
179 error = af_face_globals_compute_script_coverage( globals );
182 af_face_globals_free( globals );
183 globals = NULL;
186 globals->increase_x_height = AF_PROP_INCREASE_X_HEIGHT_MAX;
189 *aglobals = globals;
195 af_face_globals_free( AF_FaceGlobals globals )
197 if ( globals )
199 FT_Memory memory = globals->face->memory;
205 if ( globals->metrics[nn] )
210 FT_ASSERT( globals->metrics[nn]->clazz == clazz );
213 clazz->script_metrics_done( globals->metrics[nn] );
215 FT_FREE( globals->metrics[nn] );
219 globals->glyph_count = 0;
220 globals->glyph_scripts = NULL; /* no need to free this one! */
221 globals->face = NULL;
223 FT_FREE( globals );
229 af_face_globals_get_metrics( AF_FaceGlobals globals,
243 if ( gindex >= (FT_ULong)globals->glyph_count )
251 gidx = globals->glyph_scripts[gindex] & AF_SCRIPT_NONE;
257 metrics = globals->metrics[clazz->script];
261 FT_Memory memory = globals->face->memory;
268 metrics->globals = globals;
272 error = clazz->script_metrics_init( metrics, globals->face );
283 globals->metrics[clazz->script] = metrics;
294 af_face_globals_is_digit( AF_FaceGlobals globals,
297 if ( gindex < (FT_ULong)globals->glyph_count )
298 return (FT_Bool)( globals->glyph_scripts[gindex] & AF_DIGIT );