mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
Notes:
sideshowbarker
2024-07-17 10:10:18 +09:00
Author: https://github.com/trflynn89
Commit: 36a495e87e
Pull-request: https://github.com/SerenityOS/serenity/pull/17568
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