Home | History | Annotate | Download | only in autofit

Lines Matching refs:globals

133   af_face_globals_compute_style_coverage( AF_FaceGlobals  globals )
136 FT_Face face = globals->face;
138 FT_Byte* gstyles = globals->glyph_styles;
145 FT_MEM_SET( globals->glyph_styles,
147 globals->glyph_count );
180 globals->module->default_script )
194 gindex < (FT_ULong)globals->glyph_count &&
205 if ( gindex < (FT_ULong)globals->glyph_count &&
214 af_get_coverage( globals, style_class, gstyles );
219 af_get_coverage( globals, AF_STYLE_CLASSES_GET[dflt], gstyles );
228 af_get_coverage( globals, style_class, gstyles );
237 if ( gindex != 0 && gindex < (FT_ULong)globals->glyph_count )
246 if ( globals->module->fallback_style != AF_STYLE_UNASSIGNED )
251 for ( nn = 0; nn < globals->glyph_count; nn++ )
256 gstyles[nn] |= globals->module->fallback_style;
277 for ( idx = 0; idx < globals->glyph_count; idx++ )
312 AF_FaceGlobals globals = NULL;
317 if ( FT_ALLOC( globals, sizeof ( *globals ) +
321 globals->face = face;
322 globals->glyph_count = face->num_glyphs;
323 globals->glyph_styles = (FT_Byte*)( globals + 1 );
324 globals->module = module;
327 globals->hb_font = hb_ft_font_create( face, NULL );
330 error = af_face_globals_compute_style_coverage( globals );
333 af_face_globals_free( globals );
334 globals = NULL;
337 globals->increase_x_height = AF_PROP_INCREASE_X_HEIGHT_MAX;
340 *aglobals = globals;
346 af_face_globals_free( AF_FaceGlobals globals )
348 if ( globals )
350 FT_Memory memory = globals->face->memory;
356 if ( globals->metrics[nn] )
365 writing_system_class->style_metrics_done( globals->metrics[nn] );
367 FT_FREE( globals->metrics[nn] );
372 hb_font_destroy( globals->hb_font );
373 globals->hb_font = NULL;
376 globals->glyph_count = 0;
377 globals->glyph_styles = NULL; /* no need to free this one! */
378 globals->face = NULL;
380 FT_FREE( globals );
386 af_face_globals_get_metrics( AF_FaceGlobals globals,
400 if ( gindex >= (FT_ULong)globals->glyph_count )
409 style = (AF_Style)( globals->glyph_styles[gindex] &
416 metrics = globals->metrics[style];
420 FT_Memory memory = globals->face->memory;
427 metrics->globals = globals;
432 globals->face );
443 globals->metrics[style] = metrics;
454 af_face_globals_is_digit( AF_FaceGlobals globals,
457 if ( gindex < (FT_ULong)globals->glyph_count )
458 return (FT_Bool)( globals->glyph_styles[gindex] & AF_DIGIT );