1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

LibGUI+LibGfx: Defer to fonts when setting Editor line height

Fonts now provide their preferred line height based on maximum
height and requested line gap. TTFs provide a preferred line gap
from table metrics while BitmapFonts are hardcoded at the previous
default for now.
This commit is contained in:
thankyouverycool 2022-02-24 08:52:31 -05:00 committed by Andreas Kling
parent 07910c12e3
commit d94db1900e
5 changed files with 7 additions and 5 deletions

View file

@ -111,6 +111,7 @@ public:
virtual int glyph_or_emoji_width(u32 code_point) const = 0;
virtual u8 glyph_height() const = 0;
virtual int x_height() const = 0;
virtual int preferred_line_height() const = 0;
virtual u8 min_glyph_width() const = 0;
virtual u8 max_glyph_width() const = 0;