LibGfx: Remove unused Font::point_size()

This commit is contained in:
Andreas Kling 2023-01-05 17:22:55 +01:00
parent 2a61d66b0a
commit cddcf531b1
Notes: sideshowbarker 2024-07-17 02:06:34 +09:00
3 changed files with 0 additions and 3 deletions

View file

@ -43,7 +43,6 @@ public:
void set_presentation_size(u8 size) { m_presentation_size = size; }
virtual float pixel_size() const override { return m_glyph_height; }
virtual float point_size() const override { return static_cast<float>(m_glyph_height) * 0.75f; }
u16 weight() const override { return m_weight; }
void set_weight(u16 weight) { m_weight = weight; }

View file

@ -142,7 +142,6 @@ public:
virtual u8 presentation_size() const = 0;
virtual float pixel_size() const = 0;
virtual float point_size() const = 0;
virtual u8 slope() const = 0;
virtual u16 weight() const = 0;

View file

@ -44,7 +44,6 @@ public:
virtual ErrorOr<NonnullRefPtr<Font>> try_clone() const override { return *this; }
virtual u8 presentation_size() const override { return m_point_height; }
virtual float pixel_size() const override { return m_point_height * 1.33333333f; }
virtual float point_size() const override { return m_point_height; }
virtual Gfx::FontPixelMetrics pixel_metrics() const override;
virtual u8 slope() const override { return m_font->slope(); }
virtual u16 weight() const override { return m_font->weight(); }