Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2018/12/16)20181217 
bmomjian Can someone tell me how custom fonts are added to Ghostscript 9.06 on Ubuntu? I have found that adding custom fonts to the Fontmap file seems to be unnecessary. I have also found that if I _don't_ create a symlink to point to my pfb files, ghostscript can find some fonts but not others, which confuses me. Adding a symlink allows it to find all files. Also, -dSAFER seems to allow a smaller list of font directories to be searched. Is this documented 00:32.31 
  Sorry, this is on Debian.03:01.41 
chrisl bmomjian: There are several ways Ghostscript finds fonts: 1) file name lookup in the font Resource directory (where the standard fonts are stored) 2) We try to find a name match via fontconfig (assuming fontconfig integration is built-in) 3) A search through a list of directories attempting to identify font files, and find a name match in those font files.07:23.02 
  SAFER limits the directories Ghostscript can read from, so that obviously limits the capabilities to find font files. You can allow Ghostscript to read from directories you want to allow by adding -I<path> to the command line07:24.09 
bmomjian That is helpful. I found if I don't create any special symlink , it only finds some of the font files in -dSAFER mode, but sees all of them if -dSAFER mode is not used. However, if I put the fonts in a subdirectory of /usr/share/fonts/type1/gsfonts/ , it finds them all in SAFER and non-SAFER mode. I found there is no effect if I put the fonts in a subdirectory of /usr/share/ghostscript/9.06/Resource/Font/. There is also no effect if I create a Fontma14:52.32 
chrisl I'd have to guess that /usr/share/fonts/type1/gsfonts/ is in the search path, so is autmatically added to the permitted directory list accessible in SAFER. /usr/share/ghostscript/9.06/Resource/Font is the font resource directory, and that is a simple file name lookup - we don't search the tree beneath there.15:00.34 
  Fontmap (or Fontmap.GS) may or may not work depending on the configuration and SAFER permissions.15:01.30 
kens chrisl purely for your amusement:15:02.20 
  https://stackoverflow.com/questions/53793986/cannot-edit-ghostprint-ppd-in-windows-10/53794379?noredirect=1#comment94476897_5379437915:02.20 
chrisl Oh, FFS...15:04.45 
kens Ghostscript 6 ? O.O15:04.56 
chrisl And updating to 7.0515:05.30 
kens Well given he's using an archaic version of gcc, he probablly won't be able to build a lot of the 3rd party libraries from a newwer version15:06.11 
chrisl I reckon gcc 2.95 ought to work - maybe not optimised, but.....15:07.17 
kens I have no idea! He claims the 8.x series won't compile though15:08.29 
  I'm not sure why he would need sed though15:08.29 
  At least not for us anyway15:08.29 
chrisl configure uses sed15:08.52 
  And awk and grep.....15:09.03 
kens Oh well that wold do it then I guess15:09.06 
  Well I did suggest he try simply downgrading the PPD files on Windows to level 215:09.48 
  No idea if that didn't work, or he didn't want to try re-installign the printers or somethign15:10.03 
  But to be honest, my curiosity is limited in this case :-)15:10.43 
  Trying to get level 3 PostScript produced by a 21st century OS to work with a level 3 interpreter based (more or less) in the previous century sseem like a forlorn hope,.15:11.25 
  I was mostly amazed he had a SparcPrinter that still works, and for which he can still apparently source consumables....15:11.43 
  Maybe he manually refills toner cartridges or something....15:12.00 
chrisl When the hell was the SparcPrinter 1 made??15:12.39 
kens err, a very, very long time ago ?15:12.51 
  Possibly in a galaxy far, far away15:13.00 
chrisl But the version of SunOS he's using is from 199415:14.00 
kens People are still shipping cartridges for the thing15:14.36 
chrisl 1992, it looks like, for the SPARCPrinter15:15.01 
  The cartridges are probably a common pattern15:15.12 
kens OK so its no more than 24 years old then :)15:15.25 
chrisl I'm stunned the drum and expecially the laser(s) still work15:15.50 
kens People seeling drums too15:16.31 
  There's a message here referring to Sparc printers from 1991:15:17.08 
  http://www.sunmanagers.org/1991/0316.html15:17.08 
chrisl Well, given the PPD defines the Postscript to send to the consumer, it shouldn't take a genius to work out that using a PPD for a version 18 years newer than the target to which you actually send the PS, just ain't a good idea15:19.56 
bmomjian chrisl: I never suspected that some directories were searched by depth, and some not. And it seems some tools only check some directories. What is the ideal directory to use for custom fonts? Also, is there still any value to using a Fontmap file, except to add aliases?18:38.22 
  So it seems when you look at gs -h, some font directories are searched with SAFER, some not, and some are searched by depth, and some not. Is this documented or how would someone know this information?18:40.46 
  In my testing of all the search paths listed in gs -h, only /usr/share/fonts seems to work for searching subdirectories.20:03.12 
 Forward 1 day (to 2018/12/18)>>> 
ghostscript.com #mupdf
Search: