You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion is to add a suitable command automatically or a different one if specified in the options, so
\newfontfamily{\nfe}{Nicest Font Ever}
would define \textnfe with \DeclareTextFontCommand{\textnfe}{\nfe} whereas
\newfontfamily{\nfe}{Nicest Font Ever}[textcommand=\iwantnfe]
would do \DeclareTextFontCommand{\iwantnfe}{\nfe} instead.
If the automatic addition is not felt appropriate (I can think to various arguments against it), the option would avoid users looking for not really famous commands such as \DeclareTextFontCommand and the interface would be neater.
The text was updated successfully, but these errors were encountered:
Description
This is a feature request about defining text commands after
\newfontfamily
and\newfontface
.Check/indicate
Further details
It happens quite frequently that after
\newfontfamily
and\newfontface
, users need a text command for choosing the appropriate font, saySee https://tex.stackexchange.com/search?q=declaretextfontcommand+%2Bfontspec for hits.
My suggestion is to add a suitable command automatically or a different one if specified in the options, so
would define
\textnfe
with\DeclareTextFontCommand{\textnfe}{\nfe}
whereaswould do
\DeclareTextFontCommand{\iwantnfe}{\nfe}
instead.If the automatic addition is not felt appropriate (I can think to various arguments against it), the option would avoid users looking for not really famous commands such as
\DeclareTextFontCommand
and the interface would be neater.The text was updated successfully, but these errors were encountered: