summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Font.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-03-24 16:20:43 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-24 16:53:21 +0100
commitb17fb76ace658a9a8ad3a8399748af3ecf27e7dc (patch)
treeede11b7c96b336ac073a2ff43a52167f799cc45b /Userland/Libraries/LibGfx/Font.h
parente72f59cd233a976188cc210fb0dffb7d18738b7d (diff)
downloadserenity-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.h1
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;