mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:47:34 +00:00
LibGfx: Make Font::pixel_size() return a float
Here's yet another place where we were chopping of decimals.
This commit is contained in:
parent
09a125bcab
commit
bfa7381852
4 changed files with 6 additions and 6 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
virtual NonnullRefPtr<Font> clone() const override { return MUST(try_clone()); } // FIXME: clone() should not need to be implemented
|
||||
virtual ErrorOr<NonnullRefPtr<Font>> try_clone() const override { return *this; }
|
||||
virtual u8 presentation_size() const override { return m_point_height; }
|
||||
virtual int pixel_size() const override { return m_point_height * 1.33333333f; }
|
||||
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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue