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) {