diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-21 15:32:22 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-21 15:32:22 +0100 |
commit | a7a1df42c726d98448faae7b1137de9d06736590 (patch) | |
tree | 3dcafb0ea14ecbc68cb66ffa6ff62bb1690dc645 | |
parent | 9e00ef0849d99f95bdd273152946f0b1dea41757 (diff) | |
download | serenity-a7a1df42c726d98448faae7b1137de9d06736590.zip |
LibGfx/OpenType: Fix typo in 'kern' table parsing
Thanks to Timon for spotting this :^)
-rw-r--r-- | Userland/Libraries/LibGfx/Font/OpenType/Font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SubtableHeader const*>(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) { |