<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks very much for the response. I had in mind to add that this is on a CentOS 7 system, but was focused on getting other details right and forgot.<div class=""><br class=""></div><div class="">The production script runs as apache; there is no local fontconfig directory. I ran the process with sudo -u apache, and it has the same result: the font is found in the .ttf.orig file.</div><div class=""><div class=""><br class=""></div><div class=""><div class="">fc-match running as either root or apache finds the font in both files, and it lists the .ttf file first.</div></div><div class=""><br class=""></div><div class=""><div class="">The gs output follows; perhaps someone will see something useful.</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier" size="2" class="">Querying operating system for font files...</font></div><div class=""><font face="Courier" size="2" class="">DEBUG: FC_WEIGHT didn't match</font></div><div class=""><font face="Courier" size="2" class="">**** Warning: glyf overlaps cmap, truncating.</font></div><div class=""><font face="Courier" size="2" class="">**** Warning: glyf overlaps cmap, truncating.</font></div><div class=""><font face="Courier" size="2" class="">**** Warning: glyf overlaps cmap, truncating.</font></div><div class=""><font face="Courier" size="2" class="">**** Warning: glyf overlaps cmap, truncating.</font></div><div class=""><font face="Courier" size="2" class="">**** Warning: glyf overlaps cmap, truncating.</font></div><div class=""><font face="Courier" size="2" class="">Can't find (or can't open) font file /usr/share/ghostscript/Resource/Font/MoongladeDEMO-Regular.</font></div><div class=""><font face="Courier" size="2" class="">Can't find (or can't open) font file MoongladeDEMO-Regular.</font></div><div class=""><font face="Courier" size="2" class="">Loading MoongladeDEMO-Regular font from /var/www/ext/resources/fonts/2- Moonglade Regular DEMO.ttf.orig... 4484276 3144792 14104520 12372058 3 done.</font></div><div class=""><font face="Courier" size="2" class="">Page 2</font></div><div class=""><font face="Courier" size="2" class="">Can't find (or can't open) font file /usr/share/ghostscript/Resource/Font/MoongladeDEMO-Regular.</font></div><div class=""><font face="Courier" size="2" class="">Can't find (or can't open) font file MoongladeDEMO-Regular.</font></div><div class=""><font face="Courier" size="2" class="">Loading MoongladeDEMO-Regular font from /var/www/ext/resources/fonts/2- Moonglade Regular DEMO.ttf.orig... 4765108 3344760 2344716 1014065 3 done.</font></div></div><div class=""><br class=""></div><div class="">I will be happy to provide other info or run tests as needed. I don’t know how fontconfig relates file names to font names, so I am not sure where to look.</div><div class=""><br class=""></div><div class="">   -- Michael

</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Oct 28, 2021, at 18:31, Lawrence D'Oliveiro <<a href="mailto:ldo@geek-central.gen.nz" class="">ldo@geek-central.gen.nz</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I wrote:<br class=""><br class=""><blockquote type="cite" class="">I don’t think Ghostscript uses Fontconfig. When I do “apt showpkg<br class="">ghostscript” on my Debian system, there is no sign of libfontconfig1<br class="">in its dependencies, as is present for example for Inkscape.<br class=""></blockquote><br class="">On the other hand, when I run “gs --help”, in the usage summary it<br class="">reports “Ghostscript is also using fontconfig to search for font files”.<br class=""><br class=""><blockquote type="cite" class="">This page <<a href="https://ghostscript.com/doc/current/Fonts.htm" class="">https://ghostscript.com/doc/current/Fonts.htm</a>> describes<br class="">how Ghostscript finds its fonts. I can find no mention of Fontconfig<br class="">there. Instead, you have to manage a “Fontmap” file.<br class=""><br class="">Looking at my installed Ghostscript package under Debian, I see a<br class="">directory called “/etc/ghostscript/fontmap.d/”. I think this is where<br class="">you place Fontmap-type files.<br class=""></blockquote><br class="">Ah, turns out the “Fontmap” file is located in<br class="">/var/lib/ghostscript/fonts/, and Debian provides a<br class="">/usr/sbin/update-gsfontmap script to regenerate that from the contents<br class="">of the fontmap.d directory.<br class=""><br class=""><blockquote type="cite" class="">Is there a per-user directory as well? Don’t know ...<br class=""></blockquote><br class="">Not for (re)generating the Fontmap, but there is for Fontconfig.<br class=""><br class="">Are you running the Fontconfig tools as the same user as Ghostscript?<br class="">Just to be sure they are looking at the same config ...<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>