On 4/15/07, Sanjoy Mahajan
If you set prologues := 1 in the mp file, that should help.
That still gave Courier fonts after including fig.1 in test.ps.
In a new metapost (texlive2007) you can even generate an image with the font included by using prologues := 3.
That worked. [I'm using MetaPost 0.993 (Web2C 7.5.6) from the Debian texlive2007-2 packages.]
From p.24 of the corresponding mpman.pdf manual:
It is worth noting that the default value prologues:=0 is sufficient for graphics included in TEX-based documents.
Does that need a slight exception added to it? Or have I misconfigured something in the toolchain from .tex + .mp to .ps? By the way, the figure works fine with prologues := 0 if I include it (using epsf.tex) in a plain-TeX document.
Your ConTeXt example is using the default latin modern fonts. The reason the mpost files work with plain TeX is that the cm fonts are being used by plain tex, so the fonts are already defined in the .ps file when the font commands in the figure file are found.
So I think there's something slightly off about what ConTeXt is doing.
On my systems I have modified the map files to use the lm-rep map
files (so cm fonts are replaced by lm fonts). Your example works for
me with TL2007 on FC5 in both plain tex and context. In context, I
see:
TeXUtil | tuo file saved
This is dvips(k) 5.96 Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2007.04.15:1332' -> t.ps