mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibGfx: Add Font::point_size()
This returns the font size in pt instead of px.
This commit is contained in:
parent
db545b51ef
commit
a4927f523b
Notes:
sideshowbarker
2024-07-17 10:31:19 +09:00
Author: https://github.com/awesomekling
Commit: a4927f523b
4 changed files with 11 additions and 0 deletions
|
@ -163,4 +163,9 @@ int ScaledFont::pixel_size_rounded_up() const
|
|||
return m_pixel_size_rounded_up;
|
||||
}
|
||||
|
||||
float ScaledFont::point_size() const
|
||||
{
|
||||
return m_point_height;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue