Open korakinos opened 3 years ago
fontspec uses *
as a way to abbreviate font names. I didn't think anyone would define a font name using it. I'll keep this open to consider adding a "NoStar" feature to disable that behaviour.
I've tried to fix this and unless I'm missing something obvious I think LaTeX itself is also struggling with the star in the name of the font. I won't close this yet but I don't think this is a simple one. For anyone reading, suggest loading the font by filename instead!
Description
Trying to compile a LaTeX document using the typeface "Jost*" (with an asterisk in the name) fails with:
Discussion on the XeTeX mailing list arrived at the suggestion that this could be a bug in fontspec. (Probably not one in latex2e.) This bug report is mostly a summary of what has been discussed on the mailing list so far.
Check/indicate
Minimal example demonstrating the issue
Further details
To get the fonts for testing: The free version of the Jost* fonts can be downloaded by selecting to pay zero dollars on the download page.
The fonts can be referred by file name without issue:
xetex (not xelatex) does not have this problem. There the Jost* typefacwe can accessed by family name, not only file name.
As a workaround, the asterisk can be deleted from the fonts' family name, e.g. using a short fontforge script:
for fontname in sys.argv[1:]: font = fontforge.open(fontname) font.familyname = "Jost" font.generate(fontname+"-starless.otf")