Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xpdf - missing fonts
Date: Wed, 04 Jan 2012 15:53:16
Message-Id: 20120104155122.GA3683@syscon7.inet
In Reply to: Re: [gentoo-user] xpdf - missing fonts by Florian Philipp
1 On 01/04/12 14:52, Florian Philipp wrote:
2 [snip]
3
4 >> open("/usr/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory)
5 >> open("/usr/local/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory)
6 >> open("/usr/share/fonts/default/Type1/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory)
7 >> open("/usr/share/fonts/default/ghostscript/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory)
8 >> open("/usr/share/fonts/type1/gsfonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory)
9 >> write(2, "Error: ", 7Error: ) = 7
10 >> write(2, "No display font for 'Courier-Bol"..., 34No display font for 'Courier-Bold') = 34
11 >>
12 >>
13 >> whereas the above font is actually in
14 >>
15 >> /usr/share/fonts/urw-fonts/
16 >>
17 >> (I've been sort of just ignoring this warning, since no pdfs I've used
18 >> have had problem displaying, despite those errors.)
19 >>
20 >> W
21 >
22 >Not sure what causes these errors or if they are related to the current
23 >issue at all. However, I guess the reason why it doesn't prevent most
24 >PDFs from working is that since PDF-1.5, all fonts have to be included
25 >in the PDF itself. Previously, some standard fonts could be assumed to
26 >be present on the PC.
27 >
28 >By the way: Does the issue happen with other readers as well?
29 >
30 >Regards,
31 >Florian Philipp
32
33 adding to /etc/xpdfrc:
34
35 displayFontT1 Times-Roman /usr/share/fonts/urw-fonts/n021003l.pfb
36 displayFontT1 Times-Italic /usr/share/fonts/urw-fonts/n021023l.pfb
37 displayFontT1 Times-Bold /usr/share/fonts/urw-fonts/n021004l.pfb
38 displayFontT1 Times-BoldItalic /usr/share/fonts/urw-fonts/n021024l.pfb
39 displayFontT1 Helvetica /usr/share/fonts/urw-fonts/n019003l.pfb
40 displayFontT1 Helvetica-Oblique /usr/share/fonts/urw-fonts/n019023l.pfb
41 displayFontT1 Helvetica-Bold /usr/share/fonts/urw-fonts/n019004l.pfb
42 displayFontT1 Helvetica-BoldOblique /usr/share/fonts/urw-fonts/n019024l.pfb
43 displayFontT1 Courier /usr/share/fonts/urw-fonts/n022003l.pfb
44 displayFontT1 Courier-Oblique /usr/share/fonts/urw-fonts/n022023l.pfb
45 displayFontT1 Courier-Bold /usr/share/fonts/urw-fonts/n022004l.pfb
46 displayFontT1 Courier-BoldOblique /usr/share/fonts/urw-fonts/n022024l.pfb
47 displayFontT1 Symbol /usr/share/fonts/urw-fonts/s050000l.pfb
48 displayFontT1 ZapfDingbats /usr/share/fonts/urw-fonts/d050000l.pfb
49
50 solves the problem with missing fonts but I still get a message:
51
52 Warning: Missing charsets in String to FontSet conversion
53 Warning: Missing charsets in String to FontSet conversion
54 Warning: Missing charsets in String to FontSet conversion
55 Warning: Missing charsets in String to FontSet conversion
56
57 Some pdf documents have on side panel index, does anybody knows what options control the fonts in that index.
58 On my display they are very small (hard to read) and choppy fonts.
59
60 --
61 Joseph

Replies

Subject Author
Re: [gentoo-user] xpdf - missing fonts Willie WY Wong <wongwwy@××××××××××.org>