mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +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
|
@ -51,7 +51,7 @@ void BoardView::pick_font()
|
|||
font_database.for_each_font([&](Gfx::Font const& font) {
|
||||
if (font.family() != "Liza" || font.weight() != 700)
|
||||
return;
|
||||
auto size = font.glyph_height();
|
||||
auto size = font.pixel_size_rounded_up();
|
||||
if (size * 2 <= m_cell_size && size > best_font_size) {
|
||||
best_font_name = font.qualified_name();
|
||||
best_font_size = size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue