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:
parent
d910dd345e
commit
1cc8895e4b
5 changed files with 16 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue