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