Hi,

Another new feature (side effect of ctx meeting):


%D \module
%D   [       file=demo-symbols.mp,
%D        version=2013.09.06,
%D          title=\CONTEXT\ \METAPOST\ graphics,
%D       subtitle=demo font,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

passvariable("fontname","demo-symbols") ;
passvariable("fontversion","1.004") ;

beginglyph(9754,2,4,0) ; % high voltage
    interim ahlength := 1 ;
    drawarrow (1,4) -- (0,2) -- (2,3) -- (1,0) withcolor darkred ;
endglyph ;

\starttext

    \definemetafont[demo-symbols][demo-symbols.mp]

    \startbuffer
        watch this: {\demo\char"261A}
    \stopbuffer

    \definefont[demo][demo@demo-symbols]

    \getbuffer \blank

    \definefont[demo][demo@demo-symbols at \the\dimexpr3\exheight]

    \getbuffer \blank

    \definefont[demo][demo@demo-symbols at \the\dimexpr4\exheight]

    \getbuffer \blank

\stoptext


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to