summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Font/ScaledFont.h
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-02-09 11:55:05 +0300
committerLinus Groh <mail@linusgroh.de>2023-02-11 20:59:13 +0000
commit1cc8895e4bca13f7b65cb7d290b2138b49b6bcfe (patch)
tree8ff12d32ebfe954af35172ec0753aeca8c41f6e2 /Userland/Libraries/LibGfx/Font/ScaledFont.h
parentd910dd345e090012db3dcc1f02ab140432c334b8 (diff)
downloadserenity-1cc8895e4bca13f7b65cb7d290b2138b49b6bcfe.zip
LibGfx: Introduce with_size method for Font
Diffstat (limited to 'Userland/Libraries/LibGfx/Font/ScaledFont.h')
-rw-r--r--Userland/Libraries/LibGfx/Font/ScaledFont.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Font/ScaledFont.h b/Userland/Libraries/LibGfx/Font/ScaledFont.h
index e1379cdcf1..b87a5095b4 100644
--- a/Userland/Libraries/LibGfx/Font/ScaledFont.h
+++ b/Userland/Libraries/LibGfx/Font/ScaledFont.h
@@ -67,6 +67,8 @@ public:
virtual DeprecatedString qualified_name() const override { return DeprecatedString::formatted("{} {} {} {}", family(), presentation_size(), weight(), slope()); }
virtual DeprecatedString human_readable_name() const override { return DeprecatedString::formatted("{} {} {}", family(), variant(), presentation_size()); }
+ virtual RefPtr<Font> with_size(float point_size) const override;
+
private:
NonnullRefPtr<VectorFont> m_font;
float m_x_scale { 0.0f };