[metapost] Open/True Type Fonts

Troy Henderson thenders at gmail.com
Sat May 17 16:49:29 CEST 2008

> % the most primitive way to use fonts - you can use the high-level
> interface of course
> \font\a="Adobe Garamond Pro"\a
> % enable colors
> \setupcolors[state=start]
> % bugfix to get withcolor working on text
> \chardef\TeXtextcolormode\zerocount
> \starttext
> \startMPpage
> draw fillcircle scaled 3cm;
> draw \sometxt{This is some \TeX{}t with Garamond.} xscaled 1.3 rotated
> 30 withcolor blue;
> \stopMPpage
> \stoptext
> Try to compile it with
>    texexec --xtx filename.tex

This fails with the following error:

kpathsea: Illegal fontname `Adobe Garamond Pro': contains ' '
! Font \a="Adobe Garamond Pro" not loadable: Metric (TFM) file not found.
<to be read again>
l.1 \font\a="Adobe Garamond Pro"\a

It acts like it's wanting a TFM as Taco suggested, but I don't have
one of those.  I only have a TTF of Adobe Garamond Pro.


More information about the metapost mailing list