Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\newfontfamily and \newfontface #435

Open
4 tasks done
eg9 opened this issue Dec 16, 2020 · 0 comments
Open
4 tasks done

\newfontfamily and \newfontface #435

eg9 opened this issue Dec 16, 2020 · 0 comments

Comments

@eg9
Copy link

eg9 commented Dec 16, 2020

Description

This is a feature request about defining text commands after \newfontfamily and \newfontface.

Check/indicate

  • Relevant for XeTeX
  • Relevant for LuaTeX
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate

Further details

It happens quite frequently that after \newfontfamily and \newfontface, users need a text command for choosing the appropriate font, say

\newfontfamily{\nfe}{Nicest Font Ever}
\DeclareTextFontCommand{\textnfe}{\nfe}

See 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

\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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant