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: \purefontname\font

\font\myfont AdamBold at 123pt

\fontname    \myfont -> AdamBold at 123pt
\purefontname\myfont -> AdamBold

so,

\definefont[Whatever][\purefontname{\font} at 24.56pt]

is probably what you're looking for

Hans




----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to