Closed omasanori closed 1 year ago
These fonts are not in the TeXlive distribution. I suggest to create a command \_famsrc {text}
which can be used in fams-ini.opm
file in the similar sense as \_famfrom
. The parameter text
can include the URL or source specification, where the font can be found. When we generate the font catalog then fonts are shown if they are installed. Else only the message is printed "the font family is available: text". The \_famsrc {TeXlive}
can be set for almost all fonts but may be there can be different sources like in these fonts Besley, Drafting, and in the case of already provided Technika fonts. I plan to create such command.
Besley font family provides variable font feature, see http://petr.olsak.net/optex/optex-tricks.html#varifonts for example. But I have bad experiences with variable fonts in general when luatex
and luaotfload
is used. For example, you can try to load Besley[wdth,wght].ttf
, rename it to Besley-varfont.ttf
and do
\ufont\f=[Besley-varfont]:axis={wght=500,wdth=80}
\f This is test of variable font.
\bye
The result includes big bugs in rendering. I don't know if this bug is in the luaotfload
package and a new issue can be created in this project. In fact, LaTeX uses luahbtex
instead luatex
and uses variable fonts with HarfBuzz library.
Thank you for your suggestions, @olsak ! I will try to implement \_famsrc
. Regarding variable font, while the foundry uses that feature aggressively with other typefaces, it is not the case with the four typefaces I selected. If OpTeX completely migrate to LuaHBTeX the variable version would be chosen but for now it is okay to static fonts I think.
Oh, I noticed just now that you had committed \_famsrc
.
Thank you.
Website: https://indestructibletype.com/ GitHub: https://github.com/indestructible-type