Mohammad Hossein Bateni schrieb am 15.02.2021 um 22:31:
Thanks for the quick response, Pablo. I already use typescripts (\definetypeface, \definefontsynonym and \definefontfallback): https://github.com/bateni/dabeer/tree/master/texmf-local/tex/context/fonts/m...
By arbitrary style, I meant something like:
\definefontfamily[myface][CUSTOM][TeX Gyre Pagella]]
https://wiki.contextgarden.net/Font_Switching says fontstyle is rm, ss, tt, mm, hw, cg, ... Because the the three dots at the end, I thought it would be possible to define new fontstyles. But I get an error if I do so.
You can add additional styles but this requires more than a single line of code. \definefontfamily itself is limited to the default styles because the command creates a typescript behind the scenes. Wolfgang