2 Oct 2008 13:27
Troubles to display text in a Metapost figure
Zdeněk Hurák <hurak <at> fel.cvut.cz>
2008-10-02 11:27:39 GMT
2008-10-02 11:27:39 GMT
Hello,
as a beginner with Metapost, I am having troubles to use text labels in a
Metapost figure. The code is simple
beginfig(1);
label.lft("A",(1cm,1cm));
endfig;
end;
The trouble is that the postscript generated using mpost gives no visible
text when viewed with gsview or kghostview. The source code for the
postscript is
%!PS
%%BoundingBox: 17 24 26 32
%%HiResBoundingBox: 17.87445 24.94255 25.34645 31.75035
%%Creator: MetaPost 1.001
%%CreationDate: 2008.10.01:2100
%%Pages: 1
%*Font: cmr10 9.96265 9.96265 41:8
%%BeginProlog
%%EndProlog
%%Page: 1 1
0 0 0 setrgbcolor
17.87445 24.94255 moveto
(A) cmr10 9.96265 fshow
showpage
%%EOF
(Continue reading)
RSS Feed