[metapost] How can I use Postscript fonts in MetaPost?

Edward G.J. Lee edt1023 at ms17.hinet.net
Tue Dec 21 14:42:44 CET 2004


On Tue, Dec 21, 2004, R S Ananda Murthy wrote:
> Hello,
> 
> I want to use PostScript fonts like Times-Roman, or Helvetica instead  
> of cmr fonts in the labels created in MetaPost figures. How can I do  
> this?

  I think it is the TeX/LaTeX's business, not MetaPost.

  Here is an example of your figure to use LaTeX/txfonts,

verbatimtex
%&latex
\documentclass{article}
\usepackage{txfonts}
\usepackage[T1]{fontenc}
\begin{document}
etex
beginfig(30)
pair A, B, C;
A:=(0,0); B:=(1cm,0); C:=(0,1cm);
draw A--B--C--cycle;
dotlabel.llft(btex $A$ etex, A);
dotlabel.lrt(btex $B$ etex, B);
dotlabel.top(btex $C$ etex, C);
endfig
end



	Edward



More information about the metapost mailing list