I am using gnuplot on OS X. If I do: set terminal postscript font
"Georgia", this produces the graph output using Georgia as the font,
as you would expect.
Georgia is a true type font installed by default in OS X in /Library/
Fonts/Georgia.ttf
Now, I have installed an additional font (Computer Modern) by adding
cmr10.ttf to Font Book, and thus it appears as /Library/Fonts/
cmr10.ttf as well. There does not appear to be any problem with the
font itself.
The problem now is that if I do: set terminal postscript font "cmr10",
the output from gnuplot is some type of monospace (Courier?) and not
the cmr10 font.
In both cases the true type font is available to gnuplot, and yet
gnuplot groks one and not the other.
Does anyone have any ideas how to make gnuplot create output in
Computer Modern? I feel like I'm almost there but am missing
something crucial.
Many thanks in advance!
- geo
>
> Hi, I've searched the archive and couldn't find an answer to this; I'm
> hoping someone can help.
>
> I am using gnuplot on OS X. If I do: set terminal postscript font
> "Georgia", this produces the graph output using Georgia as the font,
> as you would expect.
>
> Georgia is a true type font installed by default in OS X in /Library/
> Fonts/Georgia.ttf
>
> Now, I have installed an additional font (Computer Modern) by adding
> cmr10.ttf to Font Book, and thus it appears as /Library/Fonts/
> cmr10.ttf as well. There does not appear to be any problem with the
> font itself.
>
> The problem now is that if I do: set terminal postscript font "cmr10",
> the output from gnuplot is some type of monospace (Courier?) and not
> the cmr10 font.
>
> In both cases the true type font is available to gnuplot, and yet
> gnuplot groks one and not the other.
Gnuplot does not do any font handling itself. It simply passes on the
font request to the output device or viewing program. In your case
this is either a PostScript printer or a viewer such as ghostview.
> Does anyone have any ideas how to make gnuplot create output in
> Computer Modern? I feel like I'm almost there but am missing
> something crucial.
Computer Modern is a TeX font, and as such it uses a different character
encoding that standard PostScript. See for example, the discussion on
http://www.stat.auckland.ac.nz/~paul/R/CM/CMR.html
There do exist font files that contain the Computer Modern glyphs
and also an index using PostScript or other non-TeX encoding,
but your particular font file may not be one of these.
It's a bit a workaround, but try to use aquaterm instead of postscript
and export from there.