Skip to content

[use] Do not skip ZWJ in GSUB backtrack/lookahead #746

@punchcutter

Description

@punchcutter

In hb-ot-layout-gsubgpos-private.hh there is this line:

      /* Ignore ZWJ if we are matching GSUB context, or matching GPOS, or if asked to. */
      matcher.set_ignore_zwj  (c->table_index == 1 || (context_match || c->auto_zwj));

The commit message for a8cf7b4 explains the reasoning for this, but I believe this shouldn't be the case for USE shaping. I'm not entirely clear on the reasoning to ignore ZWJ only in backtrack and lookahead, but since USE shaping allows ZWJ anywhere (well, hb only has it in a few places so far: #542) I think we shouldn't be ignoring it.
@behdad WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    USEUniversal Shaping Engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions