google / fonts

Font files available from Google Fonts, and a public issue tracker for all things Google Fonts

Home Page:https://fonts.google.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deduplicate lookups in Crimson Text

IvanUkhov opened this issue · comments

Describe the bug

There are duplicate lookups in the same feature record.

To Reproduce

ttx -t GSUB ofl/crimsontext/CrimsonText-Regular.ttf
      …
      <FeatureRecord index="2">
        <FeatureTag value="ccmp"/>
        <Feature>
          <!-- LookupCount=6 -->
          <LookupListIndex index="0" value="0"/>
          <LookupListIndex index="1" value="3"/>
          <LookupListIndex index="2" value="6"/>
          <LookupListIndex index="3" value="7"/>
          <LookupListIndex index="4" value="6"/>
          <LookupListIndex index="5" value="7"/>
        </Feature>
      </FeatureRecord>
      …

Expected behavior

Unless I am missing something, it should not happen.

Hi @IvanUkhov, thank you for your report. @emmamarichal will take a look at it and let you know about it.

Hi @IvanUkhov!
Could you send me some images or example of what it is affected by this? So I can solve this easier, with more context?
thank you!

I do not have any images. I am just parsing the font data. It is more of a question. Maybe it is intentional that lookups 6 and 7 should be done twice for some reason.

I'm not sure if this is intentional, but the features are automatically generated. I'll have to investigate, but as it doesn't seem to affect the font visually, I won't be adding this to our priority milestone.