|
From: Martin D. W. <wei...@as...> - 2004-06-15 18:05:57
|
On Tue, 15 Jun 2004 15:49:09 +0200 (CEST)
Hans-Bernhard Broeker <br...@ph...> wrote:
> On Tue, 15 Jun 2004, Martin D. Weinberg wrote:
>
> > On Tue, 15 Jun 2004 13:42:09 +0200 (CEST)
> > Hans-Bernhard Broeker <br...@ph...> wrote:
> >
> > > On Mon, 14 Jun 2004, Martin Weinberg wrote:
> > >
> > > > I seem to have a problem accessing the symbol font in enhanced mode
> > > > with the png terminal. Superscripts and subscripts work fine but
> > > > use of the symbol font gives me:
> > > >
> > > > gdImageStringFT: Could not find/open font
> > > >
> > > > I have installed symbol.ttf. Has anybody got a clue? Thanks!!
> > >
> > > Installed it *where*? How exactly is gnuplot informed about it?
> >
> > I copied it to /usr/share/fonts/truetype, the dir which contains the
> > truetype fonts. libgd is clearly able to find this path since it finds
> > the Arial font in this same directory, that I specified in the "set
> > terminal" command.
>
> I suspect you overlooked updating the catalog file in that directory,
> then. Generally speaking, it's probably not a good plan to tinker with
> the contents of directories owned by the distribution like that. This
> kind of work is what the /usr/local hierarchy is for.
>
> The libfreetype experts can probably enlighten your more thoroughly...
>
So here is the scoop: libgd only uses path searching to find fonts. The
reason that symbol wasn't found the first time is that I used the capital
name, e.g. "{/Symbol=18 k}", instead of symbol. When I made the new
directory in /usr/local, I had both symbol.ttf and Symbol.ttf entries.
I do agree with you about adding stuff to /usr/local rather than /usr.
Anyway, everything is now working perfectly. The advantage of writing
png directly rather than ps -> png is file size and better looking fonts.
Thanks again!
|