LibGfx: Add Font::point_size()

This returns the font size in pt instead of px.
This commit is contained in:
Andreas Kling 2023-03-15 10:46:06 +01:00
commit a4927f523b
Notes: sideshowbarker 2024-07-17 10:31:19 +09:00
4 changed files with 11 additions and 0 deletions

View file

@ -39,6 +39,8 @@ public:
u8* rows() { return m_rows; }
u8* widths() { return m_glyph_widths; }
virtual float point_size() const override { return m_presentation_size; }
u8 presentation_size() const override { return m_presentation_size; }
void set_presentation_size(u8 size) { m_presentation_size = size; }