Right to left kerning in variable font

I believe this issue is still present in variable fonts for RTL scripts. I’ve encountered it in both Hebrew and Arabic.

To confirm my workflow is correct, here’s what I’m doing:

  1. Open the glyph pair I want to kern

  2. Set text direction to RTL

  3. Apply kerning

  4. Export the font

Yet the kerning still behaves incorrectly (e.g., applied to the wrong side).

Is a fix for VF on the road map?

RTL kerning should work for variable fonts, too.

Could you send us a test file and a note which glyph pair to try?

You’re right! I found both issues, and neither were related to VF. In the Hebrew font, I still had old LTR kerning, which seems to dominate over RTL kerning. In the Arabic font I had kerned Arabic-Indic numerals RTL, but they actually need to be kerned LTR. It feels counter-intuitive, but it makes sense because Arabic-Indic digits are treated as “weak” characters in the Unicode bidi algorithm. Shaping engines process them in logical LTR order even within an RTL run, so kerning applied RTL ends up affecting the wrong side of the preceding glyph. Kern LTR for digits, RTL for letters, and you get predictable results.