1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:07:36 +00:00

LibGfx: Introduce with_size method for Font

This commit is contained in:
Aliaksandr Kalenik 2023-02-09 11:55:05 +03:00 committed by Linus Groh
parent d910dd345e
commit 1cc8895e4b
5 changed files with 16 additions and 0 deletions

View file

@ -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 };