mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
LibGfx: Use non-emoji glyph width API to compute the width of a space
This commit is contained in:
parent
8d0b0fbdd3
commit
36a495e87e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue