Not all OpenType variations detected (Regression in version 2.13.94)
Since version 2.13.94
, fontconfig fails to detect all variations/weights for some fonts.
Reproduce
# Download demo font
curl -L https://github.com/erikarvstedt/fontforge-bug-repro/blob/99490c7b5cedb965274e3306f8eb062b69577a27/SFNSDisplay.ttf?raw=true -o SFNSDisplay.ttf
fc-scan SFNSDisplay.ttf | grep weight
# This outputs 10 weights with fontconfig <= 2.13.93,
# but only 2 weights with fontconfig 2.13.94
Use this script for a fully specified, isolated repro in a Nix build.
I've also reproduced this via the archlinux@sha256:3ac6d1abecb740c95fe990b0cc15cb6d261cb2b18ab2c541119778f5de71d08e
docker image which contains fontconfig 2.13.94
.