* it also gets stuck here
@ 2000-11-01 22:01 Denis B. Roegel
2000-11-02 10:08 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Denis B. Roegel @ 2000-11-01 22:01 UTC (permalink / raw)
Cc: roegel
The example below also gets stuck if I uncomment the
\setupbodyfont line.
Denis
\setupcolors[state=start]
\starttext
\startMPenvironment
%\setupbodyfont[loc,mt,ppl,pcr,10pt]
\definefont[RotFont][RegularBold]
\stopMPenvironment
\resetMPdrawing
\startMPdrawing
picture pic[];
numeric wid[], len[], pos[], n;
wid[0] := len[0] := pos[0] := n := 0;
\stopMPdrawing
\def\whatever#1%
{\appendtoks#1\to\MPtoks
\setbox\MPbox=\hbox{\bfd\the\MPtoks}%
\startMPdrawing
n:=n+1; len[n] := \the\wd\MPbox;
\stopMPdrawing
\startMPdrawing[-]
pic[n] := btex \bfd#1 etex;
\stopMPdrawing}
\handletokens MetaPost is Fun!\with\whatever
\startMPdrawing
pair len; len := origin;
for i=1 upto n:
draw pic[i] shifted len;
draw boundingbox pic[i] shifted len
withpen pencircle scaled .25pt withcolor red;
len:=len+(xpart lrcorner pic[i]-xpart llcorner pic[i],0);
endfor;
\stopMPdrawing
\MPdrawingdonetrue
\getMPdrawing
\stoptext
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: it also gets stuck here
2000-11-01 22:01 it also gets stuck here Denis B. Roegel
@ 2000-11-02 10:08 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-11-02 10:08 UTC (permalink / raw)
Cc: ntg-context, roegel
At 11:01 PM 11/1/00 +0100, Denis B. Roegel wrote:
>%\setupbodyfont[loc,mt,ppl,pcr,10pt]
maybe you haven't defined all font on your system or in the map files, you
may try:
\setupbodyfont[ber,pcr,10pt]
or so. Keep in mind that some of those examples are made for my
configuration, which may differ from yours.
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-02 10:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-01 22:01 it also gets stuck here Denis B. Roegel
2000-11-02 10:08 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).