From 36a495e87ef4b16236678df0e090082474f9972c Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 22 Feb 2023 12:11:17 -0500 Subject: [PATCH] LibGfx: Use non-emoji glyph width API to compute the width of a space --- Userland/Libraries/LibGfx/Painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index 745ca4187b..8b48706409 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -2492,7 +2492,7 @@ void Painter::draw_text_run(FloatPoint baseline_start, Utf8View const& string, F auto pixel_metrics = font.pixel_metrics(); float x = baseline_start.x(); float y = baseline_start.y() - pixel_metrics.ascent; - float space_width = font.glyph_or_emoji_width(' '); + float space_width = font.glyph_width(' '); u32 last_code_point = 0;