Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Ghostscript: Missing fonts?!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Deathcrow
n00b
n00b


Joined: 24 Jul 2006
Posts: 32

PostPosted: Sat Aug 19, 2017 6:38 am    Post subject: [SOLVED] Ghostscript: Missing fonts?! Reply with quote

I'm stumped by this problem and not sure since when Ghostscript doesn't work properly anymore. I've noticed the issue yesterday while trying to use google-perftools to create a profiling report pdf:

pprof --pdf a.out /tmp/aout_default > profiler_default.pdf
Code:

Using local file a.out.
Using local file /tmp/aout_default.
Dropping nodes with <= 8 samples; edges with <= 1 abs(samples)
Error: /invalidfont in /findfont
Operand stack:
   --nostringval--   coordfont   Times-Roman
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1999   1   3   %oparray_pop   1998   1   3   %oparray_pop   1982   1   3   %oparray_pop   1868   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1951   3   4   %oparray_pop
Dictionary stack:
   --dict:1214/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--   --dict:3/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.21: Unrecoverable error, exit code 1


Looks like it can't find Times-Roman? I have corefonts installed, but not sure if that's relevant.

This used to work a few months ago I think.

Then I found the 'loadallfonts' command for ghostscript, this is the output:

/usr/bin/gs -c loadallfonts

Code:

GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 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 hrpltb.gsf.
Can't find (or can't open) font file /usr/share/ghostscript/9.21/Resource/Font/Hershey-Plain-Triplex-Bold.
Can't find (or can't open) font file Hershey-Plain-Triplex-Bold.
Querying operating system for font files...
Can't find (or can't open) font file hrpltb.gsf.
Can't find (or can't open) font file /usr/share/ghostscript/9.21/Resource/Font/Hershey-Plain-Triplex-Bold.
Can't find (or can't open) font file Hershey-Plain-Triplex-Bold.
Didn't find this font on the system!
Substituting font Times-Bold for Hershey-Plain-Triplex-Bold.
Can't find (or can't open) font file /usr/share/ghostscript/9.21/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.21/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.21/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.21/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:
   Hershey-Plain-Triplex-Bold
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   %array_continue   --dict:99/100(G)--   --nostringval--   128   %dict_continue   --nostringval--   1951   1   3   %oparray_pop
Dictionary stack:
   --dict:1210/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.21: Unrecoverable error, exit code 1


Weird!

Here's the contents of my /usr/share/ghostscript/9.21/Resource/Font/ folder:

Code:

-rw-r--r-- 1 root root 152571 Aug 19 01:43 C059-BdIta
-rw-r--r-- 1 root root 146081 Aug 19 01:43 C059-Bold
-rw-r--r-- 1 root root 148874 Aug 19 01:43 C059-Italic
-rw-r--r-- 1 root root 145118 Aug 19 01:43 C059-Roman
-rw-r--r-- 1 root root  43343 Aug 19 01:43 D050000L
-rw-r--r-- 1 root root 155923 Aug 19 01:43 NimbusMonoPS-Bold
-rw-r--r-- 1 root root 154156 Aug 19 01:43 NimbusMonoPS-BoldItalic
-rw-r--r-- 1 root root 142932 Aug 19 01:43 NimbusMonoPS-Italic
-rw-r--r-- 1 root root 140227 Aug 19 01:43 NimbusMonoPS-Regular
-rw-r--r-- 1 root root 133048 Aug 19 01:43 NimbusRoman-Bold
-rw-r--r-- 1 root root 140997 Aug 19 01:43 NimbusRoman-BoldItalic
-rw-r--r-- 1 root root 142132 Aug 19 01:43 NimbusRoman-Italic
-rw-r--r-- 1 root root 133571 Aug 19 01:43 NimbusRoman-Regular
-rw-r--r-- 1 root root 107830 Aug 19 01:43 NimbusSans-Bold
-rw-r--r-- 1 root root 112048 Aug 19 01:43 NimbusSans-BoldOblique
-rw-r--r-- 1 root root 109851 Aug 19 01:43 NimbusSansNarrow-BdOblique
-rw-r--r-- 1 root root 106275 Aug 19 01:43 NimbusSansNarrow-Bold
-rw-r--r-- 1 root root 107395 Aug 19 01:43 NimbusSansNarrow-Oblique
-rw-r--r-- 1 root root 104288 Aug 19 01:43 NimbusSansNarrow-Regular
-rw-r--r-- 1 root root 109836 Aug 19 01:43 NimbusSans-Oblique
-rw-r--r-- 1 root root 104042 Aug 19 01:43 NimbusSans-Regular
-rw-r--r-- 1 root root 162116 Aug 19 01:43 P052-Bold
-rw-r--r-- 1 root root 163885 Aug 19 01:43 P052-BoldItalic
-rw-r--r-- 1 root root 161505 Aug 19 01:43 P052-Italic
-rw-r--r-- 1 root root 159774 Aug 19 01:43 P052-Roman
-rw-r--r-- 1 root root  31444 Aug 19 01:43 StandardSymbolsPS
-rw-r--r-- 1 root root 137133 Aug 19 01:43 URWBookman-Demi
-rw-r--r-- 1 root root 142672 Aug 19 01:43 URWBookman-DemiItalic
-rw-r--r-- 1 root root 137589 Aug 19 01:43 URWBookman-Light
-rw-r--r-- 1 root root 143215 Aug 19 01:43 URWBookman-LightItalic
-rw-r--r-- 1 root root 100529 Aug 19 01:43 URWGothic-Book
-rw-r--r-- 1 root root 102277 Aug 19 01:43 URWGothic-BookOblique
-rw-r--r-- 1 root root 103324 Aug 19 01:43 URWGothic-Demi
-rw-r--r-- 1 root root 104966 Aug 19 01:43 URWGothic-DemiOblique
-rw-r--r-- 1 root root 166580 Aug 19 01:43 Z003-MediumItalic


Is there something missing?

I already attempted to emerge an older version of ghostscript in the hopes that it would fix the issue, but no such luck. Any ideas would be really great! Thanks.

Edit: I assume this is related to a fontconfig mis-configuation?

output of fc-match for the font that gs complains about in the loadallfonts test:
Code:
 
fc-match "NimbusMonL-Regu"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular


This seems fine, why won't it work?!


Last edited by Deathcrow on Sat Aug 19, 2017 8:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Deathcrow
n00b
n00b


Joined: 24 Jul 2006
Posts: 32

PostPosted: Sat Aug 19, 2017 8:40 am    Post subject: Reply with quote

Ok I figured it out. This was caused by infinality.

I disabled infinality in eselect fontconfig and everything works.

Is this a Bug in the infinality configs, or am I using infinality wrong?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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