googlefonts / googlefonts/fontmake

disable automatic GDEF generation when building variable fonts

Open
#1,148 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
888
Forks
97
Avg merge
4d 52m
Merged PRs (30d)
1

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

- [simple test case](http://github.com/googlefonts/amstelvar-avar2/tree/main/DEBUG-GDEF)

Contributor guide

Open the contributing guide

Research direction

Start with the DEBUG-GDEF simple test case and compare the --no-generate-GDEF and --feature-writer options between static and variable-font builds. Done means automatic GDEF generation can be disabled for variable fonts and the behavior is verified against that test case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.