googlefonts / ufo2ft

A bridge from UFOs to FontTools objects (and therefore, OTFs and TTFs).
MIT License
152 stars 43 forks source link

Kerning between Common script (`Zyyy`) characters is wrong for RTL text #824

Open khaledhosny opened 8 months ago

khaledhosny commented 8 months ago

Kerning between glyphs for Common script (Zyyy) is output in a lookup that assumes these glyphs will always be LTR, but for RTL text they will be laid out in RTL direction, so the kerning will be wrong.

khaledhosny commented 8 months ago

We currently put them in kern_Default lookup and add it to all scripts regardless of the script direction, but for RTL scripts there should be another kern_Default_RTL lookup with the kerning values set up for RTL direction.

anthrotype commented 8 months ago

sounds good to me. Maybe you'd like to work on it? :)

I wonder why we hadn't thought about this solution before.