Skip to content

hb_set_intersect appears to be broken in 1.6.2 #579

@jfkthame

Description

@jfkthame

I'm seeing unexpected results from hb_set_intersect (often, but not invariably, returning an empty result, when the two sets did have some intersection).

This is breaking behavior in Firefox, where it is wanting to determine whether a given feature supports all the glyphs in a text run.

E.g.

inputGlyphs: 886 887 888 889 890 891 892 893 894 895 1024 1152
glyphsInRun: 889 1024
intersection: (empty)

But:

inputGlyphs: 886 887 888 889 890 891 892 893 894 895 1024 1152
glyphsInRun: 887 888 889 1121
intersection: 887 888 889 1121

For a given pair of sets, the result is consistent, but it's not obvious why the one case fails while the other succeeds.

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