Skip to content

Lookup flags parsed incorrectly in an OT feature file import #5337

@iorsh

Description

@iorsh

FontForge ignores second lookup flag when merging feature info file with multiple flags.

Example feature file:

lookup Kern_HEBR {
  lookupflag RightToLeft IgnoreMarks;
    pos \afii57645 \afii57681 -10;
    pos \afii57645 \afii57664 -10;
} Kern_HEBR;

feature kern {

 script hebr;
     language dflt ;
      lookup Kern_HEBR;
} kern;

After the import the lookup metadata shows just the first flag set:
lookup_flags_bug

The issue seems to be in fea_ParseLookupFlags()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions