Evince displays wrong font for PDF Courier basefont
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fontconfig |
Invalid
|
Medium
|
|||
Poppler |
Invalid
|
Undecided
|
Unassigned | ||
fontconfig (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: evince
My version of Ubuntu:
> $ lsb_release -rd
> Description: Ubuntu 8.04.2
> Release: 8.04
My version of evince:
> $ apt-cache policy evince
> evince:
> Installed: 2.22.2-0ubuntu2
> Candidate: 2.22.2-0ubuntu2
> Version table:
> *** 2.22.2-0ubuntu2 0
> 500 http://
> 100 /var/lib/
> 2.22.1.1-0ubuntu1 0
> 500 http://
PDFs which specify the basefont of "Courier" are displayed with an oblique typeface which is not at all a good
substitute. It looks radically different from the Courier displayed by xpdf, gv, and Adobe Acrobat.
What I expected: a font which looks like "Courier."
I plan to attach a PDF "rfc3513.txt.pdf" which demonstrates the problem, as well as two Evince screenshots
and a screenshot from gv and xpdf respectively. Gv and xpdf do not have beautiful fonts, but they are
correct. Adobe Acrobat Reader uses a good looking font. (I haven't enclosed a screenshot, but
Reader is a good reference for what it should look like if you have one handy.)
This is the relevant font description line from the above PDF:
> <</Type/
The problem may be with poppler or with fontconfig since they are used by Evince. However, I haven't been
able to prove either of them to be the culprit. The problem is only visible in Evince. My guess
is that this will be an easy configuration fix. I believe Evince just needs to not oblique the font and not
embolden it and it will be correct -- but I haven't been able to figure out how that is configured.
The font Evince is very closely related to "Nimbus Mono L" except it is oblique by 10 degrees (I measured
it) and it looks bolder than it should be. Looking through the font-config configuration files in /etc/fonts
suggests that "Nimbus Mono L" is what fontconfig recommends for "Courier." Also, see:
> $ fc-match courier
> n022003l.pfb: "Nimbus Mono L" "Regular"
This is the file where the font appears:
/usr/share/
For cross reference, in oowriter the "Courier 10 Pitch" font if the "tilted A" button is pushed looks almost
exactly the same.
This is the version of fontconfig I'm using:
> $ apt-cache policy fontconfig
> fontconfig:
> Installed: 2.5.0-2ubuntu3
> Candidate: 2.5.0-2ubuntu3
> Version table:
> *** 2.5.0-2ubuntu3 0
> 500 http://
> 100 /var/lib/
Changed in fontconfig: | |
status: | Unknown → Confirmed |
Changed in fontconfig: | |
status: | Confirmed → Invalid |
Changed in fontconfig: | |
status: | Invalid → Confirmed |
Changed in fontconfig: | |
status: | Confirmed → Invalid |
Changed in fontconfig: | |
importance: | Unknown → Medium |
status: | Invalid → Unknown |
Changed in fontconfig: | |
importance: | Medium → Unknown |
Changed in fontconfig: | |
importance: | Unknown → Medium |
Changed in fontconfig: | |
status: | Unknown → Invalid |
It displays correctly on my Evince, I don't know if it's because I installed msttcorefonts or ttf-liberation (probably the second). Can you try installing ttf-liberation and open the pdf again with evince?