[Pkg-octave-devel] Bug#710272: Bug#710272: octave: Printing gives a Ghostscript error

Hendrik Rittich progchild at gmx.de
Fri May 31 08:47:51 UTC 2013


Hi,

running the code

octave:1> set (0, "defaultaxesfontname", "Helvetica")
octave:2> x = linspace(0, 10);
octave:3> plot(x, sin(x));
octave:4> print -dps2 plot.ps

works. The PostScript file is produced as desired.

Without setting the font this fails. When I execute this

octave:1> x = linspace(0, 10);
octave:2> plot(x, sin(x));
octave:3> print -deps2 plot.eps

an eps is created. When opening with Ghostscript I get the following error messages:


GPL Ghostscript 9.05 (2012-02-08)
[...]
Loading StandardSymL font from /usr/share/fonts/type1/gsfonts/s050000l.pfb... 3527728 2097376 4600464 3242420 2 done.
Loading NimbusSanL-Regu font from /usr/share/fonts/type1/gsfonts/n019003l.pfb... 3590648 2232930 4661016 3305639 2 done.
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/{}.
Can't find (or can't open) font file {}.
Querying operating system for font files...
Error: /limitcheck in /findfont
Operand stack:
[...]
GPL Ghostscript 9.05: Unrecoverable error, exit code 1


I had the fonts-pagul package installed. When I remove the package the error is gone. Nerver the less, when opening the created _EPS_ file with Ghostscript I get the following warning:


GPL Ghostscript 9.05 (2012-02-08)
[...]
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/{}.
Can't find (or can't open) font file {}.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/{}.
Can't find (or can't open) font file {}.
Didn't find this font on the system!
Substituting font Courier for {}.
[...]


Thus I think that octave or gnuplot (to answer the question: Yes I am using the gnuplot backend.) somehow create an invalid EPS file.

Kind Regards,

Hendrik



Gesendet: Donnerstag, 30. Mai 2013 um 12:19 Uhr
Von: "Hendrik Rittich" <hendrik.rittich at gmx.de>
An: "Mike Miller" <mtmiller at ieee.org>
Cc: "Hendrik Rittich" <progchild at gmx.de>, 710272 at bugs.debian.org
Betreff: Re: [Pkg-octave-devel] Bug#710272: octave: Printing gives a Ghostscript error
Hi,

I tried to reproduce the error on another Debian testing machine, but I
was not able to do so. At the moment I do not have access to the machine
with the error. However I will test tomorrow if setting the default font
fixes the problem.

>From what I remember: A postscript file is generated that can not be
viewed in Evince, Okular oder Ghostscript. When opening with Ghostscript
I got the error that it could not find the font file

/usr/share/ghostscript/9.05/Resource/Font/{}

Thus this sounds pretty much like what is described in your reference
[1].

Kind Regards,

Hendrik

Am Mittwoch, den 29.05.2013, 23:01 -0400 schrieb Mike Miller:
> On Wed, May 29, 2013 at 10:20 AM, Sébastien Villemot wrote:
> >
> > Le mercredi 29 mai 2013 à 15:44 +0200, Hendrik Rittich a écrit :
> >
> >> The following code should reproduce the error:
> >>
> >> octave:1> x = linspace(0, 10);
> >> octave:2> plot(x, sin(x));
> >> octave:3> print -dps2 plot.ps
> >> GPL Ghostscript 9.05: Unrecoverable error, exit code 1
> >
> > Running these 3 lines on an up-to-date unstable/sid machine, I get no
> > error, and the PostScript file is created.
>
> Same here. However, I have gotten this error before [1], and I was
> just able to make it happen again, simply by installing certain fonts
> on the system (apt-get install fonts-pagul).
>
> Henrik, do you still get the same Ghostscript error if you execute the
> following before plotting and printing?
>
> octave:1> set (0, "defaultaxesfontname", "Helvetica")
>
> If that fixes it, then see #662892, you may be seeing the same or a related bug.
>
> [1] http://octave.1599824.n4.nabble.com/3-6-1-produces-eps-files-that-are-unusable-on-Debian-wheezy-td4438420.html
>
 



More information about the Pkg-octave-devel mailing list