mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGfx: Make Font::preferred_line_height() more correct
Return a float, and fix a bogus calculation of ascender + descender.
This commit is contained in:
parent
43a10674d0
commit
2a61d66b0a
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/awesomekling
Commit: 2a61d66b0a
8 changed files with 10 additions and 10 deletions
|
@ -2193,7 +2193,7 @@ void TextEditor::set_editing_engine(OwnPtr<EditingEngine> editing_engine)
|
|||
|
||||
int TextEditor::line_height() const
|
||||
{
|
||||
return font().preferred_line_height();
|
||||
return static_cast<int>(ceilf(font().preferred_line_height()));
|
||||
}
|
||||
|
||||
int TextEditor::fixed_glyph_width() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue