Adam Lindsay wrote:
hi all.
what's your best way of getting the current font name, regardless of how
it's set (e.g., typescript, unicode, definedfont, low-level \font
definitions...)?
I certainly know about \truefontname{}, but what to put in the braces?
tex: \fontname\font
also in context:
Hans Hagen said this at Thu, 25 Nov 2004 13:11:49 +0100:
tex: \fontname\font
Thanks Hans. That's reliable.
also in context: \purefontname\font
This fails with the XeTeX quoted-with-spaces fonts (just gives Chaparral
) . I wasn't looking to test that sort of thing, but there you go.
Clearly
Adam Lindsay wrote:
Clearly \def\splitoffpurefontname#1 #2\\{#1} isn't enough. :/
if this fails ...
\unprotected
\def\purefontname#1%
[EMAIL PROTECTED]@[EMAIL PROTECTED] \\}
... then you're stuck for a few days (tomorrow i'm away)
Hans