mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 00:41:09 +01:00
[ft] Comment
This commit is contained in:
1 parent
d2aa2397ba
commit
4148487556
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user