googlefonts / googlefonts/fontmake

"Can't define a variable scalar in a non-variable font"

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

Description

My build fails with that error message, trying to generate static instances.

Is this a variable scalar?:
`pos a' b <0 (wght=100:0 wght=400:50 wght=1000:100) 0 0>;`

If so, I feel like this should get resolved for generating statics in the same way that outline interpolation gets resolved, which should ultimately be the same calculation.

Or am I getting something wrong?

Is it the norm today to cut statics via varLib.instancer and I just ignore making statics the old way?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the static-instance build failure with the provided variable scalar expression. Compare how static generation handles this expression with how outline interpolation is resolved, and check whether varLib.instancer is the intended path. Done means the expected static instances can be generated or the supported workflow is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
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.