poppler cannot display embeddd CJK fonts in pdf w/o poppler-data

Bug #458288 reported by Laurent Bonnaud
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
poppler (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: evince

The file attached with this bug report can be displayed with evince, but all characters are missing.

okular has the same problem, but xpdf does display the file correctly.

In the terminal where I launch evince, many error messages are displayed. Here is a sample of those error messages:

Error (26144): No font in show/space
Error (26155): No font in show
Error: Unknown font tag 'G3'

ProblemType: Bug
Architecture: i386
Date: Thu Oct 22 18:01:30 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/evince
Package: evince 2.28.1-0ubuntu1 [modified: usr/bin/evince usr/bin/evince-thumbnailer usr/bin/evince-previewer]
ProcVersionSignature: Ubuntu 2.6.31-14.47-generic-pae
SourcePackage: evince
Uname: Linux 2.6.31-14-generic-pae i686

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Waldir Leoncio (wleoncio) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in evince (Ubuntu):
status: New → Confirmed
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

could you please attach screenshots of what it looks like in evince and xpdf? it seems to render fine over here...
thank you

Changed in evince (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: [Bug 458288] Re: incomplete display of some PDF file

On Thu, 2009-10-22 at 21:10 +0000, Dimitrios Symeonidis wrote:

> could you please attach screenshots of what it looks like in evince
> and xpdf?

Here it is.

> it seems to render fine over here...

You probably have more fonts installed on your system. Here are the
fonts installed on my system:

$ dpkg -l | grep ttf-
ii ttf-dejavu 2.29-2 Metapackage to pull in ttf-dejavu-core and ttf-dejavu-extra
ii ttf-dejavu-core 2.29-2 Vera font family derivate with additional characters
ii ttf-dejavu-extra 2.29-2 Vera font family derivate with additional characters
ii ttf-dustin 20030517-6 Various TrueType fonts from dustismo.com
ii ttf-freefont 20090104-2 Freefont Serif, Sans and Mono Truetype fonts
ii ttf-inconsolata 001.010-1 monospace font for pretty code listings and for the terminal
ii ttf-liberation 1.05.1.20090721-0ubuntu1 Free fonts with the same metrics as Times, Arial and Courier
ii ttf-lyx 1.6.4-1ubuntu1 TrueType versions of some TeX fonts
ii ttf-mscorefonts-installer 3.0 Installer for Microsoft TrueType core fonts
ii ttf-opensymbol 1:3.1.1-5ubuntu1 OpenSymbol TrueType font

--
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

Changed in evince (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Dimitrios Symeonidis (azimout) wrote : Re: incomplete display of some PDF file

The only non-embedded font in the pdf is "Helvetica-Bold". On my system it seems to be replaced by Arial, which is installed by the (non-free!) ttf-mscorefonts-installer.

Can you please confirm that installing this package make the pdf render correctly?

Changed in evince (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: [Bug 458288] Re: incomplete display of some PDF file

On Fri, 2009-10-23 at 12:11 +0000, Dimitrios Symeonidis wrote:

> The only non-embedded font in the pdf is "Helvetica-Bold". On my system
> it seems to be replaced by Arial, which is installed by the (non-free!)
> ttf-mscorefonts-installer.
>
> Can you please confirm that installing this package make the pdf render
> correctly?

No, because the ttf-mscorefonts-installer package is already installed
on my system :>.

--
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

Revision history for this message
Dimitrios Symeonidis (azimout) wrote : Re: incomplete display of some PDF file

Sorry, didn't see that, here's what I have on my system (output of dpkg -l | grep ttf-):

ttf-arphic-uming
ttf-dejavu
ttf-dejavu-core
ttf-dejavu-extra
ttf-freefont
ttf-liberation
ttf-mscorefonts-installer
ttf-opensymbol

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

Laurent, what is your output of "fc-match Helvetica-Bold"? Mine is n019003l.pfb: "Nimbus Sans L" "Regular", which is installed by the gsfonts and gsfonts-x11 packages...

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: [Bug 458288] Re: incomplete display of some PDF file

On Fri, 2009-10-23 at 14:39 +0000, Dimitrios Symeonidis wrote:

> Laurent, what is your output of "fc-match Helvetica-Bold"? Mine is
> n019003l.pfb: "Nimbus Sans L" "Regular", which is installed by the
> gsfonts and gsfonts-x11 packages...

Same thing on my system:

$ fc-match Helvetica-Bold
n019003l.pfb: "Nimbus Sans L" "Regular"

$ dpkg -S n019003l.pfb
gsfonts: /usr/share/fonts/type1/gsfonts/n019003l.pfb
gsfonts-x11: /usr/share/fonts/X11/Type1/n019003l.pfb

$ dpkg -s gsfonts
Package: gsfonts
[...]
Version: 1:8.11+urwcyr1.0.7~pre44-4

--
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: incomplete display of some PDF file

I tried to pinpoint the missing fonts:

$ strace evince Lens_HF125HA-1B.pdf &> resu

$ grep pfb resu
[nothing]

$ grep ttf resu
stat64("/usr/share/fonts/truetype/ttf-sil-andika", 0xbf8e7b2c) = -1 ENOENT (No such file or directory)
open("/usr/share/fonts/truetype/ttf-sil-andika", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/share/fonts/truetype/ttf-gentium", 0xbf8e7b2c) = -1 ENOENT (No such file or directory)
open("/usr/share/fonts/truetype/ttf-gentium", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/share/fonts/truetype/ttf-arabeyes", 0xbf8e7b2c) = -1 ENOENT (No such file or directory)
open("/usr/share/fonts/truetype/ttf-arabeyes", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/share/fonts/truetype/ttf-malayalam-fonts", 0xbf8e7b2c) = -1 ENOENT (No such file or directory)
open("/usr/share/fonts/truetype/ttf-malayalam-fonts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/share/fonts/truetype/ttf-dejavu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/fonts/truetype/ttf-inconsolata", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/fonts/truetype/ttf-liberation", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/fonts/truetype/ttf-lucida", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/fonts/truetype/ttf-lyx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", O_RDONLY) = 10
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf", O_RDONLY) = 20

Dimitrios, does evince try to access the same TTF fonts ?

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

Did the strace. Grepping for pfb also returns nothing here. Grepping for ttf gives:

access("/etc/fonts/conf.d/25-ttf-arphic-uming-render.conf", R_OK) = 0
stat64("/etc/fonts/conf.d/25-ttf-arphic-uming-render.conf", {st_mode=S_IFREG|0644, st_size=362, ...}) = 0
open("/etc/fonts/conf.d/25-ttf-arphic-uming-render.conf", O_RDONLY) = 12
access("/etc/fonts/conf.d/35-ttf-arphic-uming-aliases.conf", R_OK) = 0
stat64("/etc/fonts/conf.d/35-ttf-arphic-uming-aliases.conf", {st_mode=S_IFREG|0644, st_size=353, ...}) = 0
open("/etc/fonts/conf.d/35-ttf-arphic-uming-aliases.conf", O_RDONLY) = 12
access("/etc/fonts/conf.d/41-ttf-arphic-uming.conf", R_OK) = 0
stat64("/etc/fonts/conf.d/41-ttf-arphic-uming.conf", {st_mode=S_IFREG|0644, st_size=1043, ...}) = 0
open("/etc/fonts/conf.d/41-ttf-arphic-uming.conf", O_RDONLY) = 12
access("/etc/fonts/conf.d/64-ttf-arphic-uming.conf", R_OK) = 0
stat64("/etc/fonts/conf.d/64-ttf-arphic-uming.conf", {st_mode=S_IFREG|0644, st_size=510, ...}) = 0
open("/etc/fonts/conf.d/64-ttf-arphic-uming.conf", O_RDONLY) = 12
access("/etc/fonts/conf.d/90-ttf-arphic-uming-embolden.conf", R_OK) = 0
stat64("/etc/fonts/conf.d/90-ttf-arphic-uming-embolden.conf", {st_mode=S_IFREG|0644, st_size=541, ...}) = 0
open("/etc/fonts/conf.d/90-ttf-arphic-uming-embolden.conf", O_RDONLY) = 12
stat64("/usr/share/fonts/truetype/ttf-dejavu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/fonts/truetype/ttf-liberation", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", O_RDONLY) = 10
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf", O_RDONLY) = 23

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

Laurent, I have found the source of the problem: it's the package poppler-data!!! It contains support for CJK fonts.

Without poppler-data installed, pdffonts Lens_HF125HA-1B.pdf returns:
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping
Error: Missing language pack for 'Adobe-Japan1' mapping
Helvetica-Bold Type 1 no no no 26 0

With poppler-data installed, pdffonts Lens_HF125HA-1B.pdf returns:
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
Helvetica-Bold Type 1 no no no 26 0
FutoGoB101-Bold-Identity-H CID Type 0C yes no no 11 0
ShinGo-Medium-Identity-H CID Type 0C yes no no 12 0
GothicBBB-Medium-Identity-H CID Type 0C yes no no 10 0
ShinGo-Bold-Identity-H CID Type 0C yes no no 24 0

So I was wrong before, the problem is not Helvetica that's not embedded, it's that poppler cannot render the embedded fonts without poppler-data!

Please verify this solution

summary: - incomplete display of some PDF file
+ poppler cannot display embeddd CJK fonts in pdf w/o poppler-data
affects: evince (Ubuntu) → poppler (Ubuntu)
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: [Bug 458288] Re: incomplete display of some PDF file

On Fri, 2009-10-23 at 15:23 +0000, Dimitrios Symeonidis wrote:

> Please verify this solution

Installing the poppler-data package cured the problem. Thanks a lot for
finding this out !

Unfortunately, this package is non-free :<.

--
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

I know, it's in multiverse since it includes copyrighted (and patent pending) technologies by Adobe.
However, this seems like good news in the right direction from Adobe: http://lwn.net/Articles/354360/

Revision history for this message
bing (ingrambj) wrote :

marked as a duplicate of #197537

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.