FS#14217 - [xpdf] Warning: Cannot convert string

Attached to Project: Arch Linux
Opened by Felix Sipma (legrostdg) - Monday, 13 April 2009, 16:02 GMT
Last edited by Allan McRae (Allan) - Saturday, 07 November 2009, 13:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
.xpdf gives me that warning at each times that I start it.
.xpdf version 3.02
.I tried to put:

displayFontTT Times-Roman /usr/share/fonts/TTF/times.ttf
displayFontTT Times /usr/share/fonts/TTF/times.ttf
displayFontTT Times-Bold /usr/share/fonts/TTF/times.ttf
displayFontTT Times-Bold-Italic /usr/share/fonts/TTF/times.ttf
displayFontTT Times-Italic /usr/share/fonts/TTF/times.ttf

in my .xpdfrc, but that didn't change anything
.ttf-ms-font is installed
.pdffonts gives me:
Times-Roman Type 1 no no no 9 0
.the bug does not occur on debian.


Steps to Reproduce:

.install xpdf
.xpdf my_pdf.pdf
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 07 November 2009, 13:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  xpdf-3.02_pl4-2
Comment by Felix Sipma (legrostdg) - Monday, 13 April 2009, 16:03 GMT
Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct

I forgot the bug :-)
Comment by Jan de Groot (JGC) - Monday, 13 April 2009, 18:56 GMT
This is because you'll need additional ancient fonts for xpdf. Try installing xorg-fonts-100dpi or xorg-fonts-75dpi. You might have to restart X to get the fonts activated, though I'm sure there's some command available that will make X rescan its fontdirs.
Comment by Felix Sipma (legrostdg) - Monday, 13 April 2009, 19:01 GMT
xorg-fonts-75dpi and xorg-fonts-100dpi are both already installed :(
Comment by Alessandro Doro (adoroo) - Monday, 13 April 2009, 20:57 GMT
Look at the output of:
$ xlsfonts -fn -*-times-medium-r-normal--*-*-*-*-*-*-iso8859-1
16 is not a valid pixel size for "times".

Note that in xpdf/XPDFViewer.cc "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" is hardcoded (aboutVersionFont variable) and used only for some text in the about box, a lesstif widget.

I always patched xpdf/XPDFViewer.cc changing 16 to 17 in aboutVersionFont. I think that one could also play with the X11 core font configuration files.
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 01 June 2009, 20:49 GMT
status of this?
Comment by Laszlo Papp (djszapi) - Saturday, 03 October 2009, 18:05 GMT
I can't reproduce it, works here now.
Comment by Henning Garus (garns) - Saturday, 03 October 2009, 18:41 GMT
There are two ways to get rid of this error:

1. In xorg.conf in the section "Files" remove unscaled from

FontPath "/usr/share/fonts/100dpi:unscaled"

2. Apply a small patch, like [1] from Fedora.

I think the second solution is preferable or just close the bug since this is merely one annoying message.

[1]: http://cvs.fedoraproject.org/viewvc/rpms/xpdf/F-12/xpdf-3.00-xfont.patch?revision=1.1&view=markup
Comment by Andrea Scarpino (BaSh) - Saturday, 31 October 2009, 20:45 GMT
  • Field changed: Summary ([xpdf] -- Warning: Cannot convert string → [xpdf] Warning: Cannot convert string)
  • Field changed: Status (Waiting on Response → Assigned)
  • Field changed: Severity (Medium → Very Low)
bumped version and warning is still present
Comment by Allan McRae (Allan) - Saturday, 07 November 2009, 13:00 GMT
Still an issue

Loading...