Re: ps2pdf not finding Times-Italic font - where should it be?

2013-08-08 Thread Tim Waugh
On Wed, 2013-08-07 at 18:53 +0100, Paul Howarth wrote: 
 Error: /invalidfont in /findfont

Generally ghostscript will substitute another font if it can't find what
you're after.

This is /invalidfont though, which I think means it tried reading the
font you asked for but that font was invalid.

There was a bug a bit like this in urw-fonts not long ago:
  https://bugzilla.redhat.com/show_bug.cgi?id=921706

Tim.
*/



signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: ps2pdf not finding Times-Italic font - where should it be?

2013-08-07 Thread Jerry James
On Wed, Aug 7, 2013 at 11:53 AM, Paul Howarth p...@city-fan.org 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.
 http://fedoraproject.org/code-of-conduct


BuildRequires: urw-fonts

I just had the same problem with the remake package.  I don't know why it
is necessary to explicitly BR that all of a sudden.
-- 
Jerry James
http://www.jamezone.org/
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: ps2pdf not finding Times-Italic font - where should it be?

2013-08-07 Thread Paul Howarth
On Wed, 7 Aug 2013 11:58:39 -0600
Jerry James loganje...@gmail.com wrote:

 On Wed, Aug 7, 2013 at 11:53 AM, Paul Howarth p...@city-fan.org
 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.
 
 
 BuildRequires: urw-fonts
 
 I just had the same problem with the remake package.  I don't know
 why it is necessary to explicitly BR that all of a sudden.

The root.log of that build
(http://koji.fedoraproject.org/koji/taskinfo?taskID=5791424) showed
urw-fonts being pulled in as a dependency of one of the existing
buildreqs, so there must be something else going on methinks...

Paul.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: ps2pdf not finding Times-Italic font - where should it be?

2013-08-07 Thread Przemek Klosowski

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
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: ps2pdf not finding Times-Italic font - where should it be?

2013-08-07 Thread Paul Howarth
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,