Lines Matching full:extents
166 inline hb_bool_t get_font_h_extents (hb_font_extents_t *extents)
168 memset (extents, 0, sizeof (*extents));
170 extents,
173 inline hb_bool_t get_font_v_extents (hb_font_extents_t *extents)
175 memset (extents, 0, sizeof (*extents));
177 extents,
252 hb_glyph_extents_t *extents)
254 memset (extents, 0, sizeof (*extents));
257 extents,
296 hb_font_extents_t *extents)
299 if (!get_font_h_extents (extents))
301 extents->ascender = y_scale * .8;
302 extents->descender = y_scale - extents->ascender;
303 extents->line_gap = 0;
306 if (!get_font_v_extents (extents))
308 extents->ascender = x_scale / 2;
309 extents->descender = x_scale - extents->ascender;
310 extents->line_gap = 0;
443 hb_glyph_extents_t *extents)
445 hb_bool_t ret = get_glyph_extents (glyph, extents);
448 subtract_glyph_origin_for_direction (glyph, direction, &extents->x_bearing, &extents->y_bearing);