1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibGfx: Use non-emoji glyph width API to compute the width of a space

This commit is contained in:
Timothy Flynn 2023-02-22 12:11:17 -05:00 committed by Linus Groh
parent 8d0b0fbdd3
commit 36a495e87e

View file

@ -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;