mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +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:
parent
93c9344e35
commit
b71c7a6e44
32 changed files with 63 additions and 65 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue