Ubuntu Linux GraphicsMagick: gm convert: Unable to read font (/usr/share/fonts/type1/gsfonts/n019003l.pfb).

After an OS re-initialization / upgrade to Linux Mint 22 using Ubuntu 24 codename noble, GraphicsMagick (gm) could not find fonts in the hard-coded directory /usr/share/fonts/type1/gsfonts

This seems to be related to a hard-coded path in GraphicsMagick. See Debian bug 1019717 which seems to have no ready solution since it is a GraphicsMagick rather than Debian bug.

One answer is to download the Ghostscript fonts and put them in the /usr/share/fonts/type1/gsfonts directory.

References:

  • https://sourceforge.net/projects/gs-fonts/
  • http://www.graphicsmagick.org/INSTALL-unix.html
  • https://groups.google.com/g/linux.debian.bugs.dist/c/ICBVFE0hRQc
12 / 2024