-
Notifications
You must be signed in to change notification settings - Fork 89
Broken fonts: Noto Looped Thai and Noto Looped Lao #377
Comments
@simoncozens : @ohbendy said you might look at it |
@ohbendy : I believe it also applies to the UI font versions ( NotoLooped{Lao,Thai}UI ) but please confirm |
Indeed it does, those are broken in the same way. |
Will take a look tomorrow. Replace Feature sounds a likely culprit. |
What does Glyphs "replace feature" do? |
In a custom parameter, you can provide a different feature definition for a given instance than the one defined in the main definitions (which are per font project). |
OK, I see the problem. Replace feature is fine as far as I can see. The problem is with ufo2ft's handling of a manual mkmk. Not the issue mentioned above, which is just about how ufo2ft orders mark classes, but the order of the mark/mkmk features. You specified a manual A simple workaround is to add a manual (An even better fix is for ufo2ft to use fontFeatures, which was actually designed for this kind of thing. ;-) |
Thank you so much Simon. That explains why the manual 'replace feature' for KERN was still working while the MKMK was not. |
Place mark feature before mkmk. Fixes #377
@ohbendy, I'm just testing the Lao now and I want to confirm the correct text sequence:
I'm presuming that the first sequence (lo-u) is how the text should be keyboarded, and you don't expect to have swap lookups so that u-lo gets automatically changed to the right order? |
Tonemarks always come after vowel marks above and below in Thai and Lao so the correct ordering would be <consonant> <coeng Lo> <vowel> <tonemark> or for these sequences ko, lo, u, mai ek. There's no reordering for those sequences, but we did put in reordering with the phinthu and combining macron below in the Thai fonts because the canonical order of combining marks gives the wrong sequences. |
That would explain the dotted circles in my github post, then. :) Great, I will add ກຼຸ່ to the regression test. (It passes, now that my fix has been applied.) |
Add regression tests for shaping issues described in notofonts/noto-source#377
The Noto Looped Thai fonts are published again at https://fonts.google.com/noto. No sign of the Looped Lao there. |
Unfortunately the FontMake build process failed to build the mark positioning correctly for our Noto Looped fonts, and every mkmk combination is broken:
Thai:
Lao:
Likewise, two marks below fail:
Lao:
These combinations work fine when exporting directly from Glyphs, but the mkmk feature seems to have gone awry. My suspicion is that it failed because we used a 'replace feature' custom parameter on the KERN and MKMK features, to be able to input different values in each instance. Perhaps FontMake didn't know what to do with that and then didn't write any code at all for those features. (IIRC Marek had also asked us to copy those custom parameters to the Master settings as well as the instances, but I can't remember the thinking there.)
Marek has now removed the broken fonts from the repo until we can fix this issue, as we don't want broken versions of them to start circulating.
The text was updated successfully, but these errors were encountered: