Closed maxnoe closed 9 months ago
To quote Marcel (https://tex.stackexchange.com/a/645963/2388)
The font loading in LuaTeX basically either succeeds or it fails, it doesn't communicate why it failed. Since a not found font is by far the most common cause for being unable to load a font that's what the error message sais, but actually it just indicates that "something" went wrong.
So probably there is some error with the font but you are using an unusual set, the montserrat on ctan contains otf and not ttf files. So it it quite difficult to say more.
Since fontspec does not load the fonts itself, this does not sound like a fontspec issue. It might be that luaotfload is confused because you have both static and variable versions of the font installed while they have the same family name, or may be something else, bit definitely not a fontspec issue.
Description
A sentence or two describing the issue.
Check/indicate
Minimal example demonstrating the issue
I cannot reproduce this locally, but CI builds fail using github actions using this minimal document:
Further details
Build log of the CI job here: https://github.com/maxnoe/fontspec-montserrat/runs/6083185139?check_suite_focus=true
Especially interesting:
fontconfig sees the font:
Luaotfload-tool sees the font:
otfinfo produces the correct name:
But then, running the compilation fails:
Any help would be greatly appreciated.
This used to work, at least until a couple of weeks ago (using TeX Live 2021, it now fails with both TeX Live 2021 and 2022).