On Wed, 7 Aug 2013 14:09:53 -0400
Przemek Klosowski przemek.klosow...@nist.gov wrote:
On 08/07/2013 01:53 PM, Paul Howarth wrote:
I'm trying to track down a problem I'm having with ps2pdf in
Rawhide, whereby it can't find the Times-Italic font. I know very
little about fonts and in fact I don't even know where (in which
package, or on the filesystem) this font should live. The Rawhide
build seems to be pulling in the same font packages as a working
F-19 build, so I'm at a loss at to why it's going wrong.
Sample failure here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=5791424
ps2pdf ./op.ps op.pdf
Error: /invalidfont in /findfont
Perhaps run ps2pdf under strace and look for failed open() calls:
strace -e open ps2pdf ./op.ps op.pdf
Comparing the working (-) and broken (+) builds, it seems that the broken one
isn't checking for Type1 fonts:
open(op.pdf, O_RDWR|O_CREAT|O_TRUNC, 0666) = 8
open(/usr/share/ghostscript/9.07/Resource/Init/Decoding/Unicode, O_RDONLY) =
-1 ENOENT (No such file or directory)
open(/usr/share/ghostscript/9.07/lib/Decoding/Unicode, O_RDONLY) = -1 ENOENT
(No such file or directory)
@@ -1314,8 +1314,6 @@
open(/var/cache/fontconfig//3830d5c3ddfd5cd38a049b759396e72e-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
open(/usr/share/fonts/default, O_RDONLY|O_CLOEXEC) = 9
open(/var/cache/fontconfig//0251a5afa6ac727a1e32b7d4d4aa7cf0-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
-open(/usr/share/fonts/default/Type1, O_RDONLY|O_CLOEXEC) = 9
-open(/var/cache/fontconfig//b79f3aaa7d385a141ab53ec885cc22a8-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
open(/usr/share/fonts/default/ghostscript, O_RDONLY|O_CLOEXEC) = 9
open(/var/cache/fontconfig//87f5e051180a7a75f16eb6fe7dbd3749-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
open(/etc/fonts/fonts.conf, O_RDONLY|O_CLOEXEC) = 9
@@ -1340,440 +1338,102 @@
open(/var/cache/fontconfig//3830d5c3ddfd5cd38a049b759396e72e-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
open(/usr/share/fonts/default, O_RDONLY|O_CLOEXEC) = 9
open(/var/cache/fontconfig//0251a5afa6ac727a1e32b7d4d4aa7cf0-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
-open(/usr/share/fonts/default/Type1, O_RDONLY|O_CLOEXEC) = 9
-open(/var/cache/fontconfig//b79f3aaa7d385a141ab53ec885cc22a8-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
open(/usr/share/fonts/default/ghostscript, O_RDONLY|O_CLOEXEC) = 9
open(/var/cache/fontconfig//87f5e051180a7a75f16eb6fe7dbd3749-le64.cache-4,
O_RDONLY|O_CLOEXEC) = 9
-open(/usr/share/fonts/default/Type1/n022024l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n021004l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n019003l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n022023l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n019004l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/z003034l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/a010035l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/a010033l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/d05l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/s05l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n022004l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n022003l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/a010015l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n019064l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/a010013l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n019063l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n019043l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/n019044l.pfb, O_RDONLY) = 9
open(/usr/share/fonts/default/ghostscript/putr.pfa, O_RDONLY) = 9
open(/usr/share/fonts/default/ghostscript/putb.pfa, O_RDONLY) = 9
open(/usr/share/fonts/default/ghostscript/putbi.pfa, O_RDONLY) = 9
open(/usr/share/fonts/default/ghostscript/putri.pfa, O_RDONLY) = 9
At this point, the working build seems to use Type1 fonts:
-open(/usr/share/fonts/default/Type1/b018012l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/p052003l.pfb, O_RDONLY) = 9
-open(/usr/share/fonts/default/Type1/c059013l.pfb, O_RDONLY) = 9
... and it goes on ...
whilst the broken build goes off looking elsewhere:
+open(/usr/share/ghostscript/9.07/Resource/Font/NimbusRomNo9L-ReguItal,
O_RDONLY) = -1 ENOENT (No such file or directory)
+open(/usr/share/ghostscript/9.07/Resource/Init/NimbusRomNo9L-ReguItal,
O_RDONLY) = -1 ENOENT (No such file or directory)
+open(/usr/share/ghostscript/9.07/lib/NimbusRomNo9L-ReguItal, O_RDONLY) = -1
ENOENT (No such file or directory)
+open(/usr/share/ghostscript/9.07/Resource/Font/NimbusRomNo9L-ReguItal,
O_RDONLY) = -1 ENOENT (No such file or directory)
+open(/usr/share/ghostscript/fonts/NimbusRomNo9L-ReguItal, O_RDONLY) = -1
ENOENT (No such file or directory)
+open(/usr/share/fonts/default/ghostscript/NimbusRomNo9L-ReguItal, O_RDONLY)
= -1 ENOENT (No such file or directory)
+open(/usr/share/fonts/default/Type1/NimbusRomNo9L-ReguItal,