diff options
author | Robert Sohn <grepper@gmail.com> | 2016-07-04 17:46:28 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2016-07-04 17:50:43 +0200 |
commit | 983408937531a08551232bd1d236c86fa0544a95 (patch) | |
tree | ecc0f6500e5cf1601a8d62a0b152d64076395619 | |
parent | 28a001fc7b1df037b8528a55aabc92d23dc2c8ea (diff) | |
download | buildroot-983408937531a08551232bd1d236c86fa0544a95.tar.gz buildroot-983408937531a08551232bd1d236c86fa0544a95.zip |
imagemagick: explicitly specify ghostscript font directory
It appears that Imagemagick needs to be configured with
--with-gs-font-dir=/usr/share/fonts/gs else it will not find
the ghostscript fonts and /etc/ImageMagick-6/type-ghostscript.xml
will contain the wrong font paths. You end up with messages like:
Magick: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1153
They are non-fatal but could get annoying fast if you are using 'convert'
on a lot of files.
Without patch we end up with (depending on what is available on the host):
Font Configuration:
Apple fonts --with-apple-font-dir=default
Dejavu fonts --with-dejavu-font-dir=default none
Ghostscript fonts --with-gs-font-dir=default /usr/share/fonts/type1/gsfonts/
Windows fonts --with-windows-font-dir=default none
And with the patch:
Font Configuration:
Apple fonts --with-apple-font-dir=default
Dejavu fonts --with-dejavu-font-dir=default none
Ghostscript fonts --with-gs-font-dir=/usr/share/fonts/gs /usr/share/fonts/gs/
Windows fonts --with-windows-font-dir=default none
[Peter: reworked/extended commit message]
Signed-off-by: Robert Sohn <grepper@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/imagemagick/imagemagick.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk index 94c96474e3..864e033987 100644 --- a/package/imagemagick/imagemagick.mk +++ b/package/imagemagick/imagemagick.mk @@ -36,7 +36,8 @@ IMAGEMAGICK_CONF_OPTS = \ --without-perl \ --without-raqm \ --without-wmf \ - --without-x + --without-x \ + --with-gs-font-dir=/usr/share/fonts/gs IMAGEMAGICK_DEPENDENCIES = host-pkgconf |