mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
Userland: Use Font::pixel_size_rounded_up() instead of glyph_height()
The only remaining clients of this API are specific to bitmap fonts and editing thereof.
This commit is contained in:
@@ -117,7 +117,7 @@ void MessageBox::build()
|
||||
|
||||
int text_width = widget->font().width(m_text);
|
||||
auto number_of_lines = m_text.split('\n').size();
|
||||
int padded_text_height = widget->font().glyph_height() * 1.6;
|
||||
int padded_text_height = widget->font().pixel_size_rounded_up() * 1.6;
|
||||
int total_text_height = number_of_lines * padded_text_height;
|
||||
int icon_width = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user