diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-02-09 11:55:05 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-11 20:59:13 +0000 |
commit | 1cc8895e4bca13f7b65cb7d290b2138b49b6bcfe (patch) | |
tree | 8ff12d32ebfe954af35172ec0753aeca8c41f6e2 /Userland/Libraries/LibGfx/Font/ScaledFont.h | |
parent | d910dd345e090012db3dcc1f02ab140432c334b8 (diff) | |
download | serenity-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.h | 2 |
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 }; |