mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 10:06:03 +00:00
LibGfx: Make draw_ui_text() underlines take glyph spacing into account
Without this, the underline was ending up too far to the left.
This commit is contained in:
parent
8f0fbfaf54
commit
eecf60767a
Notes:
sideshowbarker
2024-07-18 20:37:35 +09:00
Author: https://github.com/awesomekling
Commit: eecf60767a
1 changed files with 1 additions and 1 deletions
|
@ -1846,7 +1846,7 @@ void Gfx::Painter::draw_ui_text(const Gfx::IntRect& rect, const StringView& text
|
|||
draw_line({ x1, y }, { x2, y }, Color::Black);
|
||||
break;
|
||||
}
|
||||
width += font.glyph_or_emoji_width(*it);
|
||||
width += font.glyph_or_emoji_width(*it) + font.glyph_spacing();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue