googlefonts / googlefonts/glyphsLib

calculation of axes

Open
#279 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
201
Forks
56
Avg merge
17m
Merged PRs (30d)
1

Description

I just tried to export some of my fonts as variable fonts using fontmake.

At least partially, it tries to determine the axes by looking at the instances. It prints this: `INFO:fontTools.varLib:Axes: ...` that contains numbers from the instances. And if those are not siting at the master location, it gives an error later on:
`assert base_idx is not None, "Base master not found; no master at default location?"`

So the axes should always be computed from the masters (and `Virtual Masters`).

Contributor guide

Open the contributing guide

Research direction

The issue names fontmake and fontTools.varLib but no repository file or test. Start by tracing where fontmake obtains axes from Glyphs instances, masters, and Virtual Masters, then verify that axes come from the masters and that the default master can be found without the reported assertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.