mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
Userland: Use Font::pixel_size_rounded_up() in more places
This commit is contained in:
parent
2e2c717e89
commit
508fb7e1e9
7 changed files with 10 additions and 10 deletions
|
@ -1202,7 +1202,7 @@ static void collect_font_metrics(Gfx::Font const& font, int& column_width, int&
|
|||
{
|
||||
line_spacing = 4;
|
||||
column_width = static_cast<int>(ceilf(font.glyph_width('x')));
|
||||
cell_height = static_cast<int>(ceilf(font.pixel_size()));
|
||||
cell_height = font.pixel_size_rounded_up();
|
||||
line_height = cell_height + line_spacing;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue