mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
Format 2 class values are byte offsets, but ExtendedTypes::offsetToIndex leaves them unchanged. Use byteOffsetToIndex to convert their sum to an FWORD index. ObsoleteTypes retains the existing kern format 2 behavior. Add a synthetic font and shaping regressions covering negative and positive kerning, the final array entry, zero classes, missing lookup entries, and disabled kerning. The shaping regression fails without the fix. The full Meson test suite passes, and Helvetica Light's LY, AY, Hi, and HH kerning matches CoreText. Fixes: https://github.com/harfbuzz/harfbuzz/issues/6461 Assisted-by: OpenAI Codex