Skip to content

disable automatic GDEF generation when building variable fonts #1148

@ghost

Description

how can we turn off automatic GDEF generation when building variable fonts?

I’ve tried --feature-writer None and/or --no-generate-GDEF – this works when generating a static font, but it does not work when generating a variable font.


Context

fontmake's automatic GDEF table generation assumes that all glyphs containing anchors with names starting with an underscore are marks (non-spacing combining glyph, GDEF class 3). such glyphs are not always marks though; there are other use cases for anchors, such as building glyphs from parts; and there is an older convention to use for example spam (in the base glyph) and _spam (in the component glyph) to attach component to base. Having _spam in a glyph like /O (to attach it to some other glyph) does not mean it should be treated as a mark.

Image

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