Skip to content

Is skipping ValueFormat1 == 0 in class kerning correct? #1

Open
@justvanrossum

Description

@justvanrossum

In line 250 of getKerningPairsFromOTF.py I see this:

                            elif valueFormat == 0:
                                # valueFormat zero is caused by a value of <0 0 0 0> on a class-class pair; skip these
                                continue

Is this really correct? If valueFormat == 0, no kerning data from the entire subtable is read at all, which makes me wonder what the use of such a subtable is. (I'm looking at a font with a PairPosFormat2 subtable with ValueFormat1 == 0, and I can't quite figure out why it's there and how it should behave.)

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