Lookupflag in automatic feature is ignored

With the latest cutting edge update, in the following automatic code the lookupflag is ignored and the exported font have 0 as lookupflag:

lookup rlig_arab_0 {
	lookupflag IgnoreMarks;
	script arab;
	sub lam-ar alef-ar by lam_alef-ar;
	sub lam-ar alefHamzaabove-ar by lam_alefHamzaabove-ar;
	sub lam-ar alefHamzabelow-ar by lam_alefHamzabelow-ar;
	sub lam-ar alefMadda-ar by lam_alefMadda-ar;
} rlig_arab_0;

If I edit the code and move the script statement before the lookup flag it gets exported correctly. It reminds me of this feaLib issue [fealib] lookup flag ignored if it's declared before a script statement · Issue #1824 · fonttools/fonttools · GitHub.

The file is here if anyone needs it.

You’re right. Fixed it. Thanks for the report!

1 Like