From b17fb76ace658a9a8ad3a8399748af3ecf27e7dc Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Thu, 24 Mar 2022 16:20:43 +0100 Subject: 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. --- Userland/Libraries/LibGfx/Font.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries/LibGfx/Font.h') 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; -- cgit v1.2.3