mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:47:46 +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
|
@ -42,7 +42,7 @@ public:
|
|||
u8 presentation_size() const override { return m_presentation_size; }
|
||||
void set_presentation_size(u8 size) { m_presentation_size = size; }
|
||||
|
||||
virtual int pixel_size() const override { return m_glyph_height; }
|
||||
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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue