Public bug reported:

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://us.archive.ubuntu.com hardy-updates/main Packages
>         100 /var/lib/dpkg/status
>      2.22.1.1-0ubuntu1 0
>         500 http://us.archive.ubuntu.com hardy/main Packages

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/Font/Name/R6/Subtype/Type1/BaseFont/Courier>>

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/fonts/type1/gsfonts/n022003l.pfb

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://us.archive.ubuntu.com hardy/main Packages
>         100 /var/lib/dpkg/status

** Affects: evince (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Evince displays wrong font for PDF Courier basefont
https://bugs.launchpad.net/bugs/327757
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to evince in ubuntu.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to