1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-31 01:32:00 -07:00

; Don't block/unblock input in text_extents methods

* src/xftfont.c (xftfont_text_extents):
* src/ftcrfont.c (ftcrfont_text_extents): Don't block/unblock
input.  (Bug#80863)
This commit is contained in:
Eli Zaretskii 2026-05-09 12:22:02 +03:00
parent 547b1ee7b6
commit 5579893ed7
2 changed files with 0 additions and 4 deletions

View file

@ -415,7 +415,6 @@ ftcrfont_text_extents (struct font *font,
{
int width, i;
block_input ();
width = ftcrfont_glyph_extents (font, code[0], metrics);
for (i = 1; i < nglyphs; i++)
{
@ -435,7 +434,6 @@ ftcrfont_text_extents (struct font *font,
}
width += w;
}
unblock_input ();
if (metrics)
metrics->width = width;

View file

@ -466,10 +466,8 @@ xftfont_text_extents (struct font *font, const unsigned int *code,
struct font_info *xftfont_info = (struct font_info *) font;
XGlyphInfo extents;
block_input ();
XftGlyphExtents (xftfont_info->display, xftfont_info->xftfont, code, nglyphs,
&extents);
unblock_input ();
metrics->lbearing = - extents.x;
metrics->rbearing = - extents.x + extents.width;