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
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
|
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
Saturday, 07 November 2009, 13:15 GMT
Reason for closing: Fixed
Additional comments about closing: xpdf-3.02_pl4-2
I forgot the bug :-)
$ 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.
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