I am using LuaTeX with TeXlive 2016, Ubuntu. Using fontspec to create a new font family. MWE:
% !TeX program = LuaLaTeX
% !TeX encoding = UTF-8
\documentclass{minimal}
\usepackage{fontspec}
\newfontfamily\MyPrivate{Latin Modern Roman} % or some other font
\begin{document}
Your private font is % \whatisMyPrivate
\end{document}
I seek \whatisMyPrivate
, so that I can uncomment that line and have the document print out the name of the font (in this case, Latin Modern Roman). I see that the \newfontfamily
command is defined in file fontspec-luatex.sty
, but alas I cannot decipher where it stores the information for subsequent read-back.
I am hoping to do this without actually setting any text in the private font. But if the only way to do this is to use the font to set some text, then read-back from within that text, then that's OK.