From a7a1df42c726d98448faae7b1137de9d06736590 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Mar 2023 15:32:22 +0100 Subject: [PATCH] LibGfx/OpenType: Fix typo in 'kern' table parsing Thanks to Timon for spotting this :^) --- Userland/Libraries/LibGfx/Font/OpenType/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Font/OpenType/Font.cpp b/Userland/Libraries/LibGfx/Font/OpenType/Font.cpp index a2ecbaef7d..d4771384a1 100644 --- a/Userland/Libraries/LibGfx/Font/OpenType/Font.cpp +++ b/Userland/Libraries/LibGfx/Font/OpenType/Font.cpp @@ -206,7 +206,7 @@ i16 Kern::get_glyph_kerning(u16 left_glyph_id, u16 right_glyph_id) const auto const& subtable_header = *bit_cast(subtable_slice.data()); auto version = subtable_header.version; - auto length = subtable_header.version; + auto length = subtable_header.length; auto coverage = subtable_header.coverage; if (version != 0) {