googlefonts / googlefonts/fontmake

TTF interpolation defects

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

Description

Hello!
I am building a variable font for rendering waveforms, https://audio-lab.github.io/wavefont/, and observing an issue with interpolating TTF state.
Font has alignment axis, and masters define top-align and bottom-align state, with values of `algn` _1_ and _0_ respectively, see [descignspace file](https://github.com/audio-lab/wavefont/blob/master/masters/wavefont.designspace#L11). Center align state (`algn` _0.5_) is expected to be interpolated by font.
And it is interpolated nicely by OTF font, generated with afdk:
![image](https://user-images.githubusercontent.com/300067/108613107-c91b7d80-73bc-11eb-9843-4eaf3956dbed.png)

But with TTF font, generated by fontmake, interpolation shows artifacts:
![image](https://user-images.githubusercontent.com/300067/108613105-bb65f800-73bc-11eb-8804-c23d9ce2c1ac.png)
As if top part of bars have right edge lowered by 1px.

What can that be related to? Some rounding to int?

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.