googlefonts / fontmake

Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType).
Apache License 2.0
789 stars 94 forks source link

Variable CFF2: all space glyphs become zero-width #614

Open madig opened 4 years ago

madig commented 4 years ago
  1. Get https://gitlab.gnome.org/GNOME/cantarell-fonts/tree/respacing/src
  2. fontmake -m Cantarell.designspace -o variable-cff2 --output-path a.otf
  3. Drag a.otf over to axis-praxis.org

The space is zero-width now :confused: Does not happen with the raw otf-interpolatable masters so something is probably going haywire in fontTools?

Edit: It's not just space but also all the other space glyphs.

anthrotype commented 4 years ago

I can't repro. I tested on Debian Linux with Chrome 78.

madig commented 4 years ago

Works on Windows 10 1909, Firefox 71. So it might be a FreeType issue.

m4rc1e commented 4 years ago

May not be related but we had a similar issue for browsers which used FreeType <= 2.6.3, https://github.com/google/fonts/issues/2051. Ftview is your friend.

madig commented 4 years ago

It works with FreeType 2.10.1, so it's a regression.

Edit: https://lists.nongnu.org/archive/html/freetype-devel/2019-12/msg00000.html