beginner3456789 / ghostscript-Fontmap-builder

builds a Fontmap file automatically for Linux ghostscript
0 stars 0 forks source link

ghostscript error when font not found #1

Open beginner3456789 opened 4 years ago

beginner3456789 commented 4 years ago

I get an error when ghostscript tries to find a missing font: $ gs findNone.ps

GPL Ghostscript 9.52 (2020-03-19) 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. Querying operating system for font files... Can't find (or can't open) font file /usr/share/ghostscript/9.52/Resource/Font//usr. Can't find (or can't open) font file None. Didn't find this font on the system! Substituting font Courier for None. Loading Courier font from /usr/share/ghostscript/fonts/Courier... 5284012 3567498 8804204 7348251 1 done.

showpage, press to continue<< GS>

beginner3456789 commented 4 years ago

This is caused by the way ghostscript finds fonts not listed in the Fontmap. The ghostscript first tries to open the file in the ghostscript library directory and then in the font resource directory. Finally ghostscript tries to open the file directly and knows there is no file found related to the font. The extra information is just an artifact of the search process when the font is missing.

.