diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-03 19:30:55 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-04 00:29:38 +0100 |
commit | 93c9344e3558fee71deb5067e68146582891b319 (patch) | |
tree | fc8354ff5456026f75eaf2b959645148a2571090 /Userland/Libraries/LibGUI/GlyphMapWidget.cpp | |
parent | 6c8e9fa1b357e6167ec9b902f6b30e042043d597 (diff) | |
download | serenity-93c9344e3558fee71deb5067e68146582891b319.zip |
LibGfx: Add Font::pixel_size_rounded_up()
This returns the font's size (distance between ascender and descender)
in pixels, rounded up to the nearest integer.
This is the number we want to use in a lot of UI code, so let's have
a friendly API for it instead of ceil'ing the pixel_size() in a million
random places.
Diffstat (limited to 'Userland/Libraries/LibGUI/GlyphMapWidget.cpp')
0 files changed, 0 insertions, 0 deletions