1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-06 07:31:13 -08:00

* src/ftcrfont.c (ftcrfont_glyph_extents): Activate ft_size_draw.

This commit is contained in:
YAMAMOTO Mitsuharu 2019-04-19 09:55:53 +09:00
parent 0a453ee7e4
commit 5ada97cfcd

View file

@ -78,6 +78,7 @@ ftcrfont_glyph_extents (struct font *font,
cairo_glyph_t cr_glyph = {.index = glyph};
cairo_text_extents_t extents;
FT_Activate_Size (ftcrfont_info->ft_size_draw);
cairo_scaled_font_glyph_extents (ftcrfont_info->cr_scaled_font,
&cr_glyph, 1, &extents);
cache->lbearing = floor (extents.x_bearing);