mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +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
4 changed files with 11 additions and 0 deletions
|
@ -161,6 +161,9 @@ public:
|
|||
virtual u8 presentation_size() const = 0;
|
||||
virtual u8 slope() const = 0;
|
||||
|
||||
// Font point size (distance between ascender and descender).
|
||||
virtual float point_size() const = 0;
|
||||
|
||||
// Font pixel size (distance between ascender and descender).
|
||||
virtual float pixel_size() const = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue