xpdf warnings "Cannot convert string * to type FontStruct"

Bug #447604 reported by ilf
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xpdf (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Karmic by ilf

Bug Description

Binary package hint: xpdf

Starting xpdf (3.02-1.4ubuntu2) in an up-to-date Karmic from a terminal outputs the following to the terminal:

Warning: Cannot convert string "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-bold-i-normal--20-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct

I googled around, but cannot find the cause of this.
Older reports of this problem had wrong or missing font paths in /etc/xpdf/xpdfrc or /etc/X11/xorg.conf. But these seem all right for me.

Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

should be fixed in 3.02-9

Changed in xpdf (Ubuntu):
status: New → Fix Released
Revision history for this message
ilf (ilf) wrote :

No, it's not.

Not only does it still output 2 of those 4 messages:

Warning: Cannot convert string "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct

It also fails to start with a "Floating point exception".

Changed in xpdf (Ubuntu):
status: Fix Released → New
Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

do you have gsfonts and/or gsfonts-x11 installed?

Revision history for this message
ilf (ilf) wrote :

Was missing gsfonts-x11.
But even with both installed, I get the same error with 3.02-9, and it refuses to start.

Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

how about poppler-data?

is this for a specific file, or all files?

Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

what does your /etc/xpdfrc look like?

Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

oops, i mean /etc/xpdf/xpdfrc

Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

what does your /etc/X11/xorg.conf look like? is anything here useful:
http://www.knoppix.net/forum/threads/5102-Strange-X-Font-problems.-Please-help!

Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

also take a look at:
http://bugs.debian.org/366347

Revision history for this message
ilf (ilf) wrote :

Ah, with both "gsfonts-x11" and "poppler-data" installed, the "Warning" messages go away.
I think the .deb should suggest these two. Right now they are nowhere mentioned.

Through your links I came to this site suggesting the problem lies upstream: http://zinser.no-ip.info/vms/sw/notes/xpdf.htmlx

"The following issues were reported by OpenVMS users of Xpdf. They are acknowledged by the author of Xpdf and should be resolved during the next couple of maintenance releases

During startup of Xpdf the message Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct is displayed
    This message can be safely ignored. This particular font is used only inside of the "About" window of Xpdf. It will be replaced in there by a default font. The display of PDF documents is not affected at all by this.
    The solution will make the font settable via an Xresource.
    The same behaviour can be observed on Linux systems."

But 3.02-9 fails to start with "Floating point exception" no matter what I try.
Should I file a new bug on this?

Revision history for this message
Michael Gilbert (michael-s-gilbert) wrote :

possibly. which version of poppler do you have installed? i think i saw somewhere that 0.14 went into maverick, which has a different API than 0.12, which would lead to this. if you have the new poppler, a different bug should be filed about the incompatible api changes between 0.12 and 0.14.

Changed in xpdf (Ubuntu):
status: New → Fix Released
Revision history for this message
Bartek (bartekastro) wrote :

When opening any pdf file xpdf crashes, when I open by terminal I got those errors:

$ xpdf
Warning: Cannot convert string "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-bold-i-normal--20-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.