Need help with Arabic contextual positioning

yanone
edited December 2024 in Font Technology
I'm trying to work around tashkeel crashing into each other on top of tightly spaced letters. In particular, I want to move the fatha (red in FontGoggles screenshot) upwards in the given context. 

All letters are separate glyphs, not a ligature.

My code is:

lookup tashkeel_crash {
        lookupflag RightToLeft;
          position @tashkeel_crash_hah @topMarks' @conn_mf_center_target @topMarks <0 200 0 0>;
      } tashkeel_crash;

But not matter what I try, it won't work.

I've confirmed the backtrack/input/lookahead sequences to be correct in OTMaster, and more than double-checked the correct OT classes and found no mistakes.

The lookup is called as part of the rclt feature, run last in the GPOS stack, after mark/mkmk.

Has anyone struggled with this before?

ps. the font is generated with fontmake, but given that it appears correct in OTMaster, I don't think this matters.


Comments