[ft] Comment

This commit is contained in:
Behdad Esfahbod 2023-01-09 13:47:59 -07:00
parent d2aa2397ba
commit 4148487556
1 changed files with 2 additions and 0 deletions

View File

@ -624,6 +624,8 @@ hb_ft_get_glyph_extents (hb_font_t *font,
if (unlikely (FT_Load_Glyph (ft_face, glyph, ft_font->load_flags)))
return false;
/* Copied from hb_font_t::scale_glyph_extents. */
float x1 = x_mult * ft_face->glyph->metrics.horiBearingX;
float y1 = y_mult * ft_face->glyph->metrics.horiBearingY;
float x2 = x1 + x_mult * ft_face->glyph->metrics.width;