diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-03-24 16:20:43 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-24 16:53:21 +0100 |
commit | b17fb76ace658a9a8ad3a8399748af3ecf27e7dc (patch) | |
tree | ede11b7c96b336ac073a2ff43a52167f799cc45b /Userland/Libraries/LibGfx/Font.h | |
parent | e72f59cd233a976188cc210fb0dffb7d18738b7d (diff) | |
download | serenity-b17fb76ace658a9a8ad3a8399748af3ecf27e7dc.zip |
LibGfx: Implement TTF kerning tables
If a TTF font contains kern tables, we now read through all of them and
apply any kerning values to character rendering.
Diffstat (limited to 'Userland/Libraries/LibGfx/Font.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Font.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Font.h b/Userland/Libraries/LibGfx/Font.h index 441e9dbad9..8596764533 100644 --- a/Userland/Libraries/LibGfx/Font.h +++ b/Userland/Libraries/LibGfx/Font.h @@ -114,6 +114,7 @@ public: virtual u8 glyph_width(u32 code_point) const = 0; virtual int glyph_or_emoji_width(u32 code_point) const = 0; + virtual i32 glyphs_horizontal_kerning(u32 left_code_point, u32 right_code_point) const = 0; virtual u8 glyph_height() const = 0; virtual int x_height() const = 0; virtual int preferred_line_height() const = 0; |