Skip to content

Support for custom/unregistered OpenType feature tags #90

Description

@graphicore

Currently, we use the registry of OpenType feature tags in ot-feature-info.mjs to populate the interface.

The Problem

In the wild, we are encountering custom, unregistered feature tags (such as BASE and SCAL in GSUB).

Because ui-opentype-features.typeroof.jsx uses the list of OTFeatureInfo as the sole source of tags, unknown tags present in the font are completely ignored by default. (Note: legacy-TypeRoof also ignores custom tags).

*_optionsGen(/*font*/) {
    yield* Object.entries(OTFeatureInfo.ui);
}

In 0ee8f24 we fixed that both legacy and shell trip over and fail due to custom tags.

Discussion

Skipping these tags limits the user's ability to test the full capabilities of custom fonts. Should we support custom feature tags, and how?

Because we lack metadata for these tags, we don't know their intended interface:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions