mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
LibGfx: Return family names by reference to avoid unnecessairy cloning
This commit is contained in:
parent
b3c253e50f
commit
ec5ea0d686
Notes:
github-actions[bot]
2024-11-20 14:39:14 +00:00
Author: https://github.com/yyny
Commit: ec5ea0d686
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1985
Reviewed-by: https://github.com/awesomekling
6 changed files with 6 additions and 6 deletions
|
@ -37,7 +37,7 @@ public:
|
|||
virtual u8 baseline() const override { return m_point_height; } // FIXME: Read from font
|
||||
virtual float width(StringView) const override;
|
||||
virtual float width(Utf8View const&) const override;
|
||||
virtual FlyString family() const override { return m_typeface->family(); }
|
||||
virtual FlyString const& family() const override { return m_typeface->family(); }
|
||||
|
||||
virtual NonnullRefPtr<ScaledFont> scaled_with_size(float point_size) const;
|
||||
virtual NonnullRefPtr<Font> with_size(float point_size) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue