Re: [NTG-context] low level fonts
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
Re: [NTG-context] low level fonts
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 \def\splitoffpurefontname#1 #2\\{#1} isn't enough. :/ -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] low level fonts
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 - 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