[metapost] infont problem

Ovidiu Gheorghies ogh at infoiasi.ro
Tue Sep 20 18:04:36 CEST 2005


Hi all. This problem has to do with the output of the code below:

  picture pA, pB, pC;
  string sA, sB, sC;
  sA := "assembleElementLocalMatrix(k: KeyType, mat: LocalMatrixType, a:
AssembleAction)";
  sB := "assembleElementLocalMatri(k: KeyType, mat: LocalMatrixType, a:
AssembleAction)";
  sC := "assembleElntLocalMatri(k: KeyType, mat: LocalMatrixType, a:
AssembleAction)";
 
  pA := sA infont "tyxbtt";
  pB := sB infont "tyxbtt";
  pC := sC infont "tyxbtt";
 
  draw pA;
  draw pB shifted (0,-20);
  draw pC shifted (0,-40);

In the pdf output the strings end, respectively, in (note the extra space):
a: AssembleA ction
a: AssembleAc tion
a: AssembleActio n

This problem can be reproduced on these systems:
This is MetaPost, Version 0.641 (Web2C 7.4.5)
This is MetaPost, Version 0.641 (Web2C 7.3.7x) (mem=mpost 2003.1.7)  7
JAN 2003 10:39

I guess that this problem is caused by the way in which the PS file is
generated, e.g. :

0 0 moveto
(assembleElementLocalMatrix\(k: KeyType, mat: LocalMatrixType, a: AssembleA\
ction\)) tyxbtt 9.96265 fshow

Any thoughts? Thanks,
Ovidiu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_font.3
Type: application/postscript
Size: 660 bytes
Desc: not available
Url : http://tug.org/pipermail/metapost/attachments/20050920/56e70b16/test_font.ai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_font-3.pdf
Type: application/pdf
Size: 6672 bytes
Desc: not available
Url : http://tug.org/pipermail/metapost/attachments/20050920/56e70b16/test_font-3.pdf


More information about the metapost mailing list