[Pkg-octave-devel] Bug#477688: Bug#477688: Bug#477688: [octave3.0] print()'ing a figure with title or (x|y)labels fails with gdImageStringFT error

Thomas Weber thomas.weber.mail at gmail.com
Tue Apr 29 15:08:04 UTC 2008


Am Freitag, den 25.04.2008, 13:06 +0200 schrieb Rafael Laboissiere:
> > 
> > If I enter the following in Octave 3.0.1-1 :
> > --- Test Case ---
> > figure;
> > plot(1:2,1:2);
> > xlabel('Label X');
> > ylabel('Label Y');
> > title('Title');
> > legend('Blue Line');
> > print('/tmp/testcase.png');
> > --- /Test Case ---
> > 
> > After the last command, I get the following error :
> > --- Error ----
> > gdImageStringFT: Could not find/open font while printing string Label Y with 
> > font Helvetica
> > gdImageStringFT: Could not find/open font while printing string Label X with 
> > font Helvetica
> > gdImageStringFT: Could not find/open font while printing string Title with 
> > font Helvetica
> > --- /Error ---
> > 
> > And the resulting image contains no title nor labels (but contains the textual 
> > legend !)
> 
> This problem has been already discussed in the upstream mailing list [1].  I
> do not know how to fix it.  For now, you could try the following:

I get the warnings as well, but my plot contains the labels (maybe in a
different font, I don't know).

	Thomas






More information about the Pkg-octave-devel mailing list