[metapost] Strange infont results

Ovidiu Gheorghies ogh at info.uaic.ro
Fri Jul 8 13:04:01 CEST 2005


Taco,

The problem with the closing parenthesis is the same when using pcrr.
http://thor.infoiasi.ro/~ogh/files/main.pdf
I'll try the newest metapost to see what happens.

Alas, the ``<<'' with pcrr is not replaced by a "neat" character as in 
tyxtt, a feature I really liked :)

My code is:

string theFont;
beginfig(1);
  theFont := "pcrr"; % or "tyxtt"
  
  boxjoin(a.sw=b.nw);
  boxit.ff(("Font name: ( ) " & theFont) infont theFont);
  boxit.s0("<<stereotype>>" infont theFont );
  boxit.s1("<<a>>, <<b>>, <<c>>" infont theFont);
  boxit.g0("[guard] " infont theFont);
  boxit.g1("[stillhungry] closing paranthesis SHOWN after hungry !" infont 
theFont);
  boxit.g2("[still hungry] closing paranthesis NOT shown after hungry !" 
infont theFont);
  boxit.g3("[][][][]hm]" infont theFont);
  boxit.c0("{constraint}" infont theFont);
  boxit.c1("{a constraint} closing paranthesis NOT shown !" infont 
theFont);
  
  drawboxed(ff, s0, s1, g0, g1, g2, g3, c0, c1);
endfig;
 
> > Can you recommend me some fixed-size fonts (like Courier New) that I can
> > use? It is important for me that this font does not display a ``~'' instead
> > of a space when used with infont. 
> 
> You can use any postscript font in Adobe's encoding, like pcrr.
> 
> > My mpost executable sais:
> > This is MetaPost, Version 0.641 (Web2C 7.5.4)
> > so I guess it's older. I use the latest Fedora Core release, 4.
> 
> Should not make a difference, really. Does it work correctlu
> if you do not use a virtual font?



More information about the metapost mailing list