googlefonts / shaperglot

Test font files for language support
Apache License 2.0
32 stars 5 forks source link

Add conditional for OT features #11

Closed NeilSureshPatel closed 1 year ago

NeilSureshPatel commented 1 year ago

Currently when checking for orphaned marks with smcp activate it will return the results for the original list of glyphs if the font does not have an smcp feature defined. This is giving duplicate errors since we am also checking for orphaned marks for original forms.

simoncozens commented 1 year ago

OK, I've done this, and the way to use it is:

- check: no_orphaned_marks
  input:
    text: aasaea᷆a᷇a᷆a᷇e᷆e᷇e᷆e᷇ɛ́ɛ̀ɛ̂ɛ̌ɛ̄ɛ᷆ɛ᷇ɛ᷆ɛ᷇...
    features:
      smcp: true
  conditions:
    features:
      - smcp