olsak / OpTeX

OpTeX - LuaTeX format with extended Plain TeX macros
http://petr.olsak.net/optex/
35 stars 13 forks source link

Add free and open typefaces from indestructible type* #120

Closed omasanori closed 1 year ago

omasanori commented 1 year ago

Website: https://indestructibletype.com/ GitHub: https://github.com/indestructible-type

olsak commented 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.

olsak commented 1 year ago

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.

omasanori commented 1 year ago

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.

omasanori commented 1 year ago

Oh, I noticed just now that you had committed \_famsrc.

olsak commented 1 year ago

Thank you.