[lltx] How to specify an instance name with a space for a variable font in luaotfload
Bruno Voisin
bvoisin at icloud.com
Wed Jul 13 11:52:58 CEST 2022
Looking closer, this seems a mode-specific issue: in harf mode, "instance=Light Extended" works just fine, but in (default) node mode it doesn't.
Attached is the output of
\input luaotfload.sty
\parindent=0pt
\parskip=0pt
\def\fonttest#1{%
\font\testfont="#1"\relax
{\testfont ABCDEFGHIJKLM}\par}
\fonttest{Skia}
\fonttest{Skia:instance=Light Extended}
\fonttest{Skia:mode=harf;instance=Light Extended}
\bigskip
\fonttest{[STIXTwoText-Italic.ttf]}
\fonttest{[STIXTwoText-Italic.ttf]:instance=SemiBold Italic}
\fonttest{[STIXTwoText-Italic.ttf]:mode=harf;instance=SemiBold Italic}
\bye
Skia.ttf is Apple's Skia font, and STIXTwoText-Italic.ttf is STIXTwoText-Italic[wght].ttf from the STIX Two fonts release 2.13b171, renamed.
Bruno Voisin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: instance-test.pdf
Type: application/pdf
Size: 77127 bytes
Desc: not available
URL: <https://tug.org/pipermail/lualatex-dev/attachments/20220713/0be4c056/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: instance-test.tex
Type: application/octet-stream
Size: 449 bytes
Desc: not available
URL: <https://tug.org/pipermail/lualatex-dev/attachments/20220713/0be4c056/attachment-0001.obj>
-------------- next part --------------
More information about the lualatex-dev
mailing list.