summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Font/ScaledFont.h
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2023-04-14 08:52:47 -0400
committerAndreas Kling <kling@serenityos.org>2023-04-15 15:24:50 +0200
commit55423b4ed06b4db1b61f862250d17f3407671117 (patch)
tree9ebb7bae0360b068af9857100a6d90ee2272eec9 /Userland/Libraries/LibGfx/Font/ScaledFont.h
parentc9404c3a63850719d79837a5c888382760b5d620 (diff)
downloadserenity-55423b4ed06b4db1b61f862250d17f3407671117.zip
LibGfx+Userland: Add width_rounded_up() helper
Diffstat (limited to 'Userland/Libraries/LibGfx/Font/ScaledFont.h')
-rw-r--r--Userland/Libraries/LibGfx/Font/ScaledFont.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Font/ScaledFont.h b/Userland/Libraries/LibGfx/Font/ScaledFont.h
index d968afcc95..ada2754dbb 100644
--- a/Userland/Libraries/LibGfx/Font/ScaledFont.h
+++ b/Userland/Libraries/LibGfx/Font/ScaledFont.h
@@ -61,6 +61,7 @@ public:
virtual float width(StringView) const override;
virtual float width(Utf8View const&) const override;
virtual float width(Utf32View const&) const override;
+ virtual int width_rounded_up(StringView) const override;
virtual DeprecatedString name() const override { return DeprecatedString::formatted("{} {}", family(), variant()); }
virtual bool is_fixed_width() const override { return m_font->is_fixed_width(); }
virtual u8 glyph_spacing() const override { return 0; }