[pstricks] Differences in the output of \psdots TeX Live 2021 (win/linux)

Pablo González pablgonz at yahoo.com
Sun Aug 22 00:26:26 CEST 2021


>> The font path to Ghostscripts font files is not found and I don't know
>> why.
>> I have the same issue on macOS. But giving the path explicitely works for
>> me. My gs fontfiles are in "/usr/local/share/ghostscript/fonts"
>>
>> ps2pdf -sFONTPATH=/usr/local/share/ghostscript/fonts/
>> -dALLOWPSTRANSPARENCY test2.ps
>>
>> or alternatively:
>>
>> ps2pdf -sFONTPATH=/usr/local/share/ghostscript/9.55.0/Resource/Font
>> -dALLOWPSTRANSPARENCY test2.ps
>
> I forgot to mention, that a environment variable woll also help:
>
> bash-3.2$ export
> GS_FONTPATH=/usr/local/share/ghostscript/9.55.0/Resource/Font
> bash-3.2$ ps2pdf -dALLOWPSTRANSPARENCY test2.ps
>
> Herbert


Hi, thanks for the answer and explanation, unfortunately it didn't work
for me :(


The experiment I did is the following (fedora 34, TeX Live 2021, gs
9.53.3)


$ ls -l /usr/share/ghostscript/Resource/Font/
total 0
lrwxrwxrwx. 1 root root 41 jun 11 10:43 C059-BdIta -> /usr/share/fonts/urw-base35/C059-BdIta.t1
lrwxrwxrwx. 1 root root 40 jun 11 10:43 C059-Bold -> /usr/share/fonts/urw-base35/C059-Bold.t1
lrwxrwxrwx. 1 root root 42 jun 11 10:43 C059-Italic -> /usr/share/fonts/urw-base35/C059-Italic.t1
lrwxrwxrwx. 1 root root 41 jun 11 10:43 C059-Roman -> /usr/share/fonts/urw-base35/C059-Roman.t1
lrwxrwxrwx. 1 root root 39 jun 11 10:43 D050000L -> /usr/share/fonts/urw-base35/D050000L.t1
lrwxrwxrwx. 1 root root 48 jun 11 10:43 NimbusMonoPS-Bold -> /usr/share/fonts/urw-base35/NimbusMonoPS-Bold.t1
lrwxrwxrwx. 1 root root 54 jun 11 10:43 NimbusMonoPS-BoldItalic -> /usr/share/fonts/urw-base35/NimbusMonoPS-BoldItalic.t1
lrwxrwxrwx. 1 root root 50 jun 11 10:43 NimbusMonoPS-Italic -> /usr/share/fonts/urw-base35/NimbusMonoPS-Italic.t1
lrwxrwxrwx. 1 root root 51 jun 11 10:43 NimbusMonoPS-Regular -> /usr/share/fonts/urw-base35/NimbusMonoPS-Regular.t1
lrwxrwxrwx. 1 root root 47 jun 11 10:43 NimbusRoman-Bold -> /usr/share/fonts/urw-base35/NimbusRoman-Bold.t1
lrwxrwxrwx. 1 root root 53 jun 11 10:43 NimbusRoman-BoldItalic -> /usr/share/fonts/urw-base35/NimbusRoman-BoldItalic.t1
lrwxrwxrwx. 1 root root 49 jun 11 10:43 NimbusRoman-Italic -> /usr/share/fonts/urw-base35/NimbusRoman-Italic.t1
lrwxrwxrwx. 1 root root 50 jun 11 10:43 NimbusRoman-Regular -> /usr/share/fonts/urw-base35/NimbusRoman-Regular.t1
lrwxrwxrwx. 1 root root 46 jun 11 10:43 NimbusSans-Bold -> /usr/share/fonts/urw-base35/NimbusSans-Bold.t1
lrwxrwxrwx. 1 root root 52 jun 11 10:43 NimbusSans-BoldItalic -> /usr/share/fonts/urw-base35/NimbusSans-BoldItalic.t1
lrwxrwxrwx. 1 root root 48 jun 11 10:43 NimbusSans-Italic -> /usr/share/fonts/urw-base35/NimbusSans-Italic.t1
lrwxrwxrwx. 1 root root 52 jun 11 10:43 NimbusSansNarrow-Bold -> /usr/share/fonts/urw-base35/NimbusSansNarrow-Bold.t1
lrwxrwxrwx. 1 root root 59 jun 11 10:43 NimbusSansNarrow-BoldOblique -> /usr/share/fonts/urw-base35/NimbusSansNarrow-BoldOblique.t1
lrwxrwxrwx. 1 root root 55 jun 11 10:43 NimbusSansNarrow-Oblique -> /usr/share/fonts/urw-base35/NimbusSansNarrow-Oblique.t1
lrwxrwxrwx. 1 root root 55 jun 11 10:43 NimbusSansNarrow-Regular -> /usr/share/fonts/urw-base35/NimbusSansNarrow-Regular.t1
lrwxrwxrwx. 1 root root 49 jun 11 10:43 NimbusSans-Regular -> /usr/share/fonts/urw-base35/NimbusSans-Regular.t1
lrwxrwxrwx. 1 root root 40 jun 11 10:43 P052-Bold -> /usr/share/fonts/urw-base35/P052-Bold.t1
lrwxrwxrwx. 1 root root 46 jun 11 10:43 P052-BoldItalic -> /usr/share/fonts/urw-base35/P052-BoldItalic.t1
lrwxrwxrwx. 1 root root 42 jun 11 10:43 P052-Italic -> /usr/share/fonts/urw-base35/P052-Italic.t1
lrwxrwxrwx. 1 root root 41 jun 11 10:43 P052-Roman -> /usr/share/fonts/urw-base35/P052-Roman.t1
lrwxrwxrwx. 1 root root 48 jun 11 10:43 StandardSymbolsPS -> /usr/share/fonts/urw-base35/StandardSymbolsPS.t1
lrwxrwxrwx. 1 root root 46 jun 11 10:43 URWBookman-Demi -> /usr/share/fonts/urw-base35/URWBookman-Demi.t1
lrwxrwxrwx. 1 root root 52 jun 11 10:43 URWBookman-DemiItalic -> /usr/share/fonts/urw-base35/URWBookman-DemiItalic.t1
lrwxrwxrwx. 1 root root 47 jun 11 10:43 URWBookman-Light -> /usr/share/fonts/urw-base35/URWBookman-Light.t1
lrwxrwxrwx. 1 root root 53 jun 11 10:43 URWBookman-LightItalic -> /usr/share/fonts/urw-base35/URWBookman-LightItalic.t1
lrwxrwxrwx. 1 root root 45 jun 11 10:43 URWGothic-Book -> /usr/share/fonts/urw-base35/URWGothic-Book.t1
lrwxrwxrwx. 1 root root 52 jun 11 10:43 URWGothic-BookOblique -> /usr/share/fonts/urw-base35/URWGothic-BookOblique.t1
lrwxrwxrwx. 1 root root 45 jun 11 10:43 URWGothic-Demi -> /usr/share/fonts/urw-base35/URWGothic-Demi.t1
lrwxrwxrwx. 1 root root 52 jun 11 10:43 URWGothic-DemiOblique -> /usr/share/fonts/urw-base35/URWGothic-DemiOblique.t1
lrwxrwxrwx. 1 root root 48 jun 11 10:43 Z003-MediumItalic -> /usr/share/fonts/urw-base35/Z003-MediumItalic.t1


I know that ps2pdf is an enpcusulate behind gs:


exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS "$infile"


But it hides the errors, so I tried using `gs` directly to see what
happens:


## First attempt


$ gs -sFONTPATH=/usr/share/ghostscript/Resource/Font -dALLOWPSTRANSPARENCY test.ps
GPL Ghostscript 9.53.3 (2020-10-01)
Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Scanning /usr/share/ghostscript/Resource/Font for fonts... 35 files, 35 scanned, 35 new fonts.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/Resource/Font//usr/shar.
Can't find (or can't open) font file helvetica.
Didn't find this font on the system!
Substituting font Courier for helvetica.
Loading NimbusMonoPS-Regular font from /usr/share/ghostscript/Resource/Font/NimbusMonoPS-Regular... 4955400 3608512 18821268 9307327 3 done.
Can't find (or can't open) font file /usr/share/ghostscript/Resource/Font//usr/share/g.
Can't find (or can't open) font file StandardSymL.
Didn't find this font on the system!
Substituting font Courier for StandardSymL.
%%BoundingBox: 142 574 238 671
%%HiResBoundingBox: 142.055996 574.019982 237.725993 670.463980
>>showpage, press <return> to continue<<


## Second attempt


$ gs -sFONTPATH=/usr/share/fonts/urw-base35 -dALLOWPSTRANSPARENCY test.ps
GPL Ghostscript 9.53.3 (2020-10-01)
Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Scanning /usr/share/fonts/urw-base35 for fonts... 104 files, 35 scanned, 35 new fonts.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/Resource/Font//usr/shar.
Can't find (or can't open) font file helvetica.
Didn't find this font on the system!
Substituting font Courier for helvetica.
Loading NimbusMonoPS-Regular font from /usr/share/ghostscript/Resource/Font/NimbusMonoPS-Regular... 5016000 3674223 18801068 9303895 3 done.
Can't find (or can't open) font file /usr/share/ghostscript/Resource/Font//usr/share/g.
Can't find (or can't open) font file StandardSymL.
Didn't find this font on the system!
Substituting font Courier for StandardSymL.
%%BoundingBox: 142 574 238 671
%%HiResBoundingBox: 142.055996 574.019982 237.725993 670.463980
>>showpage, press <return> to continue<<


The environment variable "GS_FONTPATH" is not set, so I don't know
which is the correct path I should set.


The only thing I notice in both cases is the line:


Can't find (or can't open) font file /usr/share/ghostscript/Resource/Font//usr/shar.


Which is totally wrong... I have the impression that it's a problem on
the `ghostcript` side (but I'm not sure).


Any ideas on how to get out of it?


Saludos



More information about the PSTricks mailing list.