Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] (ghostscript) Nimbus font?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 86

PostPosted: Thu Dec 27, 2018 2:19 am    Post subject: [solved] (ghostscript) Nimbus font? Reply with quote

Code:
nathan@gentoolaptop ~ $ gs /media/store/Libraries/Books/hurd/machuse.ps
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusRomNo9L-Medi.
Can't find (or can't open) font file NimbusRomNo9L-Medi.
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusRomNo9L-Medi.
Can't find (or can't open) font file NimbusRomNo9L-Medi.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusRomNo9L-Medi.
Can't find (or can't open) font file NimbusRomNo9L-Medi.
Didn't find this font on the system!
Substituting font Courier for NimbusRomNo9L-Medi.
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Didn't find this font on the system!
Unable to substitute for font.
Error: /invalidfont in /findfont
Operand stack:
   --nostringval--   Times-Bold
Execution stack:
   %interp_exit   .runexec2   --nostringval--   .findfontop   --nostringval--   2   %stopped_push   --nostringval--   .findfontop   .findfontop   false   1   %stopped_push   2045   1   3   %oparray_pop   2044   1   3   %oparray_pop   2025   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   .findfontop   --nostringval--   2   %stopped_push   --nostringval--   .findfontop   .findfontop   1975   2   4   %oparray_pop
Dictionary stack:
   --dict:973/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--   --dict:96/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 10913
GPL Ghostscript 9.26: Unrecoverable error, exit code 1

Code:
nathan@gentoolaptop ~ $ gs /media/store/Libraries/Books/hurd/mig.ps
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Didn't find this font on the system!
Unable to substitute for font.
Error: /invalidfont in /findfont
Operand stack:
   WFT   Courier
Execution stack:
   %interp_exit   .runexec2   --nostringval--   .findfontop   --nostringval--   2   %stopped_push   --nostringval--   .findfontop  .findfontop   false   1   %stopped_push   2045   1   3   %oparray_pop   2044   1   3   %oparray_pop   2025   1   3   %oparray_pop  1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   .findfontop   --nostringval--   2  %stopped_push   --nostringval--   1975   2   3   %oparray_pop
Dictionary stack:
   --dict:973/1684(ro)(G)--   --dict:0/20(G)--   --dict:85/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 593
GPL Ghostscript 9.26: Unrecoverable error, exit code 1


Any idea how I can install these fonts?


Last edited by Gooberpatrol66 on Thu Dec 27, 2018 11:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1682

PostPosted: Thu Dec 27, 2018 2:25 am    Post subject: Reply with quote

I believe they come from media-fonts/urw-fonts
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 998
Location: Frankfurt, Germany

PostPosted: Thu Dec 27, 2018 4:04 am    Post subject: Reply with quote

Maybe one of the threads below?
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 86

PostPosted: Thu Dec 27, 2018 10:54 pm    Post subject: Reply with quote

Etal wrote:
I believe they come from media-fonts/urw-fonts


Already installed.

mike155 wrote:
Maybe one of the threads below?


The font files aren't actually present, so I don't think it's either of those problems.
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 86

PostPosted: Thu Dec 27, 2018 11:13 pm    Post subject: Reply with quote

Alright turns out I had to comment out Type-1 font banning in infinality.conf.
https://bugs.gentoo.org/436500#c2
Problem solved.
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 998
Location: Frankfurt, Germany

PostPosted: Fri Dec 28, 2018 12:21 am    Post subject: Reply with quote

I think I know what happens.

Gentoo installs a faulty ghostscript font mapping file - at least on my machine.

Replace the installed ghostscript font mapping file with the original file from the ghostscript source tar ball.
Code:
cd /tmp
tar xvf /usr/portage/distfiles/ghostscript-9.26.tar.xz ghostscript-9.26/Resource/Init/Fontmap.GS

cd /usr/share/ghostscript/9.26/Resource/Init
ls -la Fontmap.GS
cp Fontmap.GS Fontmap.GS.backup
cp /tmp/ghostscript-9.26/Resource/Init/Fontmap.GS .
chown root:root Fontmap.GS
chmod 0644 Fontmap.GS
ls -la Fontmap.GS

Look at the diff between Fontmap.GS and Fontmap.GS.backup. You will see that Gentoo changed and truncated font file names. Look especially at the lines below:
Code:
/Times-BoldItalic               /NimbusRomNo9L-MediItal ;
/Times-Bold                     /NimbusRomNo9L-Medi     ;
/Times-Italic                   /NimbusRomNo9L-ReguItal ;
/Times-Roman                    /NimbusRomNo9L-Regu     ;

That's totally wrong! Those font files don't exist. The lines above are the reason for the error messages you saw. Your Postscript file contains text in Times-Roman and the font mapping file tells ghostscript to open the font file 'NimbusRomNo9L-Regu', which (of course) doesn't exist.

I filed a bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum