Sorry, I thought I'd sent this message to the list, but I guess I
only sent it to Cri Rigamonti. For the record, I'll post it here,
since the fonts-in-graphs problem on Linux seems quite widespread,
and we have a solution here.
---------- Forwarded message ----------
Date: Mon, 6 Feb 2006 19:38:17 -0500 (EST)
From: Allin Cottrell <cottrell(a)wfu.edu>
To: Cristian Rigamonti <cri(a)linux.it>
Subject: Re: [Gretl-users] gretl-gnuplot bug? (TrueType needed)
On Tue, 7 Feb 2006, Cristian Rigamonti wrote:
On Mon, Feb 06, 2006 at 03:31:20PM -0500, Allin Cottrell wrote:
>
> If you're not seeing a TrueType font option (there should be a list
> to choose from in the Edit window for a graph)
I can't find such an option in the edit window. Where should it be?
For the benefit of gretl users on Linux who have never seen this fabled
dialog entry, I'm attaching a PNG screenshot!
gnuplot> set term png font "Vera.ttf"
Terminal type set to 'png'
Could not find/open font when opening font Vera.ttf, using default
Thanks very much for trying this experiment. It confirms what I suspected,
namely that the Debian installation of gnuplot does not support the use of
TrueType fonts without special efforts.
gnuplot> set term png font \
"/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
(special effort: line broken for readability).
And this time it worked.
OK, we are in business! For the cognoscenti, the recipe is this:
#!/bin/sh
FDIR=$(dirname `locate Vera.ttf | tail -1`)
export GDFONTPATH=$FDIR
to be executed prior to running gretl. Now we just have to figure
out how to make this user-friendly!
Allin Cottrell.