[NTG-context] scaling symbols

Hans Hagen pragma at wxs.nl
Fri Apr 1 09:06:29 CEST 2005


Adam Lindsay wrote:
> Janko Hauser said this at Thu, 31 Mar 2005 21:58:23 +0200:
> 
> 
>>Hello I followed Adams nice way, to include unicode symbols. Now I want
>>to ask, how these can be scaled, so that they can be used more like
>>small figures. Any hints?
> 
> 
> Hmm, it depends a bit on how you get these (I assume) Unicode symbols and
> fonts.
> Note that symb-uni is part of the main distro now, and you probably
> should set my earlier version of the file aside.
> You could redefine \USymbChar after \usesymbols[uni]:
> \def\USymbChar#1#2{%
>   \scale[sx=0.8,sy=0.8]{\uchar#1#2}}
> \let\USymbCharTwo\USymbChar
> \let\USymbCharZapf\USymbChar
> 
> (untested, inelegant)

\startsymbolset[myscaledsymbols]

\definesymbol[MyUniSymbolA][{\scale[sx=.75em,sy=.5cm]]{\uchar{..}{..}}]

\stopsymbolset

....

\symbol[myscaledsymbols][MyUniSymbolA]

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
-----------------------------------------------------------------



More information about the ntg-context mailing list