mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibWeb: Don't truncate font sizes before scaling them to device pixels
This fixes an issue where fonts would often paint at the wrong sizes with device pixel ratios other than 1.0.
This commit is contained in:
parent
a4927f523b
commit
664f30a2c9
2 changed files with 5 additions and 3 deletions
|
@ -59,6 +59,8 @@ public:
|
|||
return clone;
|
||||
}
|
||||
|
||||
float device_pixels_per_css_pixel() const { return m_device_pixels_per_css_pixel; }
|
||||
|
||||
private:
|
||||
Gfx::Painter& m_painter;
|
||||
Palette m_palette;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue