Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136276 - xpdf-3.01-r8 not showing certain symbols
Summary: xpdf-3.01-r8 not showing certain symbols
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-10 04:59 UTC by R!tman
Modified: 2006-07-15 04:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The test pdf file (test.pdf,47.18 KB, application/force-download)
2006-06-13 10:57 UTC, xalan
Details
test.pdf as rendered by gentoo xpdf. Look at the horrible font. Compare it to pic below (snapshot1.png,33.34 KB, image/png)
2006-06-13 10:58 UTC, xalan
Details
test.pdf as rendered by local comiled xpdf. This one correctly renders Nimbus Sans Slanted font (snapshot3.png,25.06 KB, image/png)
2006-06-13 11:00 UTC, xalan
Details
Look at this bullet points, instead of using dingbats it is rendering them as letters 's' and 'y' (snapshot2.png,67.92 KB, image/png)
2006-06-13 11:01 UTC, xalan
Details
compared to the previous one, the local compiled xpdf correctly renders dingabts bullets. Also the font of the text is rendered correctly (snapshot4.png,59.25 KB, image/png)
2006-06-13 11:03 UTC, xalan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R!tman 2006-06-10 04:59:21 UTC
Using this latex file

\documentclass[a4paper]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{pslatex}
\begin{document}
This is an alpha: $\alpha$
\end{document}

and compiling it with pdflatex produces a file that xpdf cannot display properly. gv works fine. The pdf file is here:
http://n.ethz.ch/student/homartin/download/test.pdf
Another file, not created by me, would be this:
http://n.ethz.ch/student/homartin/download/mathcad.bragg.cavity02.pdf

I have this problem on three different systems, two x86 and one amd64.

I use xpdf-3.01-r8 and poppler-0.5.1-r1. poppler-0.5.3 together with xpdf-3.01-r8 does not work, xpdf-3.01-r7 together with poppler-0.5.1 does not either.
Comment 1 xalan 2006-06-13 10:53:54 UTC
I also have a similar problem. and i confirm pervious posters claim. xpdf does not render fonts properly. 

Then I downloaded xpdf-2.01.tar from http://www.foolabs.com/xpdf/ and configured with 
./configure --with-freetype2-library=/usr/lib/libfreetype.so.6 --with-freetype2-includes=/usr/include/freetype2/

and rebuilt the whole stuff.

Now xpdf renders properly.

Not only xpdf is able to render  the font rather than drawing a box, it is able to render the fonts *correctly*. Look at the attachments for the more details
Comment 2 xalan 2006-06-13 10:57:08 UTC
Created attachment 89058 [details]
The test pdf file
Comment 3 xalan 2006-06-13 10:58:36 UTC
Created attachment 89059 [details]
test.pdf as rendered by gentoo xpdf. Look at the horrible font. Compare it to pic below
Comment 4 xalan 2006-06-13 11:00:17 UTC
Created attachment 89060 [details]
test.pdf as rendered by local comiled xpdf. This one correctly renders Nimbus Sans Slanted font
Comment 5 xalan 2006-06-13 11:01:29 UTC
Created attachment 89061 [details]
Look at this bullet points, instead of using dingbats it is rendering them as letters 's' and 'y'
Comment 6 xalan 2006-06-13 11:03:02 UTC
Created attachment 89062 [details]
compared to the previous one, the local compiled xpdf correctly renders dingabts bullets. Also the font of the text is rendered correctly
Comment 7 R!tman 2006-07-10 23:12:43 UTC
Since using modular X, using "\usepackage{mathptmx}" instead of "\usepackage{pslatex}" works, the latter still doesn't. Well, working is a bit too much... The font looks rather thick, the characters overlap. Variables in formulas  are not italic as they should be.
Using this ~/.fonts.conf 

<alias>
        <family>Symbol</family>
        <accept><family>Standard Symbols L</family></accept>
</alias>

also displays .pdfs "correctly" that were created with "\usepackage{pslatex}". These also have non-italic variables and a thick look.

The other .pdf (mathcad.bragg.cavity02.pdf) also looks better now, variables are displayed. I don't know if they _should_ be italic or not, they _are_ not. Font  looks thick, although that might have been intended.

With gv everything look normal for every of the described situations.
Comment 8 R!tman 2006-07-15 02:55:53 UTC
Since moving to modular X, I had only check on the issue on one computer, an amd64. There the situation is as follows:

$ xpdf
Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct

similar error with

$ xterm -fn -*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1
xterm:  unable to open font "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1", trying "fixed"....

using gv everything looks ok, using xpdf fonts look thick (like bold but letter are too close together) and variable are not italic.

Checking on the issue on an x86 yields the same errors when starting xpdf and xterm, but xpdf renders the same pdf files fine.

Using another x86, everything looks fine. Even the error messages are gone.

I have no clue!
Comment 9 R!tman 2006-07-15 04:10:18 UTC
The font error was caused by the usage of ":unscaled" in xorg.conf. 

There was probably something wrong in /etc/fonts/something. I copied all files from another computer and it worked.

I resolve this bug! Does it work for you too xalan? If you want, I can post my stuff from /etc/fonts/