summaryrefslogtreecommitdiff
path: root/Userland/Applications/HexEditor/HexEditor.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-03 19:30:55 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-04 00:29:38 +0100
commit93c9344e3558fee71deb5067e68146582891b319 (patch)
treefc8354ff5456026f75eaf2b959645148a2571090 /Userland/Applications/HexEditor/HexEditor.h
parent6c8e9fa1b357e6167ec9b902f6b30e042043d597 (diff)
downloadserenity-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/Applications/HexEditor/HexEditor.h')
0 files changed, 0 insertions, 0 deletions