googlefonts / googlefonts/fontmake

FontMake seems to be rounding axis locations for width axis, when 'Axis Location' params are used in Glyphs sources

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

Description

I have a weight & width family with Glyphs sources, and I’m building variable fonts with FontMake.

I am using `Axis Location` custom parameters in Masters and Exports, which is the recommended way to set up axis mapping in exported variable fonts. It usually works great!

I have instances like "SemiCondensed Bold" that have a Width value of `87.5`.

If I export directly from GlyphsApp, these floating-point width values make it into the output font’s fvar table.

However, if I build with fontmake, these width values get rounded down, e.g. to `87`.

What’s more, I am adding a STAT table with a secondary process, and that accurately inserts `87.5` for my SemiCondensed instances, which means that the STAT and fvar tables are mismatched.

But, I’d rather find/fix the problem, rather than just change my STAT table to suit the unexpected/unintended values in fvar.

I can’t share the immediate font sources, but I can make a reproduction case, if that is vital here. Let me know.

Or, please let me know if this kind of issue is something that might be better reported in another repo. Or, if this seems like it really is just a problem in my sources, I’m definitely open to that possibility, and would be happy to learn how to improve in this regard.

As always, thank you so much for any insights here!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.