I want to get the name of the fonts in the document while I write my document.
At the moment I am alright with
\newcommand{\FntNmeTitleA}{Felix Titling Regular}
\newfontfamily\FontTitleA[LetterSpace=4.5]{Felix Titling}
\FontTitleA This Text is written in \FntNmeTitleA!
But that sucks if I have a lot fonts and want to get the current name. Is there a way like known in many programming languages:
\FontTitleA This Text is written in \FontTitleA.name!
Cheers



fontspec, but even this isn't guaranteed from the paltry fragements you've posted. As @RobtA says, with traditional typesetting,\f@familygives the current family. Other aspects of the current font are stored similarly, so you can retrieve and test them or whatever. (nfssext-cfr.stydoes this extensively.) – cfr Mar 26 '17 at 01:01