Am 11.05.2009 um 16:38 schrieb Yue Wang:
Hi Hans:
let me give a better explanation.
we define a typescript foobar. so we can call \foobar to load the foobar typeface. then we should define a macro like this: \def\switchtofoobar{\savecurrentstyle\foobar\getcurrentstyle} and call it like that:
text 1 {\swichtofoobar text2} text 3 when \savecurrentstyle is called, it define a macro named \getcurrentstyle in order to save the style of text 1 (like \ss\it, 10pt) into that. that's all we want.
From font-ini.mkii (\push/\popcurrentfont): % \definetypeface[one][rm][serif][computer-roman][default] % \definetypeface[two][rm][serif][computer-roman][default][rscale=.9] % % {\one \bf test \two test} % {\one \bf test \pushcurrentfont \two \popcurrentfont test} there are more helper macros like \savefont and \restorefont Wolfgang