Allow imagemagick to find ghostscript fonts.
PATCH 1/1 Allow imagemagick to find ghostscript fonts.
From: Robert Sohn <[email protected]>
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.
--- package/imagemagick/imagemagick.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/imagemagick/imagemagick.mk +2 -1
@@ -33,7 +33,8 @@ IMAGEMAGICK_CONF_OPTS = \ --without-dps \ --without-gslib \ --without-fpx \ - --without-x + --without-x \ + --with-gs-font-dir=/usr/share/fonts/gs IMAGEMAGICK_DEPENDENCIES = host-pkgconf
Signature · 1 line
2.1.4
PATCH 1/1 Allow imagemagick to find ghostscript fonts.
Hi Robert,
Quoted 20 lines · grepper
From: Robert Sohn <[email protected]>
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.xmlwill 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.Signed-off-by Robert Sohn <[email protected]>--- package/imagemagick/imagemagick.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/imagemagick/imagemagick.mk +0
-0
package/imagemagick/imagemagick.mk IMAGEMAGICK_CONF_OPTS = \ · line 37
Quoted 6 lines
package/imagemagick/imagemagick.mk +2
-1@@ -33,7 +33,8 @@ IMAGEMAGICK_CONF_OPTS = \ --without-dps \ --without-gslib \ --without-fpx \ - --without-x + --without-x \ + --with-gs-font-dir=/usr/share/fonts/gs
These fonts are only available when the ghostscript-fonts is built, isn't it? If so, then this should be
ifeq ($(BR2_PACKAGE_GHOSTSCRIPT_FONTS),y) IMAGEMAGICK_CONF_OPTS += --with-gs-font-dir=/usr/share/fonts/gs endif
Or maybe we should use $(GHOSTSCRIPT_FONTS_TARGET_DIR) here, instead of duplicating it?
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 Allow imagemagick to find ghostscript fonts.
Quoted 33 lines · Baruch Siach
Hi Robert,
Quoted 20 lines · grepper
From: Robert Sohn <[email protected]>
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.xmlwill 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.Signed-off-by Robert Sohn <[email protected]>--- package/imagemagick/imagemagick.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/imagemagick/imagemagick.mk +0
-0package/imagemagick/imagemagick.mk IMAGEMAGICK_CONF_OPTS = \ · line 37
Quoted 6 lines
package/imagemagick/imagemagick.mk +2
-1@@ -33,7 +33,8 @@ IMAGEMAGICK_CONF_OPTS = \ --without-dps \ --without-gslib \ --without-fpx \ - --without-x + --without-x \ + --with-gs-font-dir=/usr/share/fonts/gsThese fonts are only available when the ghostscript-fonts is built, isn't it? If so, then this should be
Quoted 9 lines
ifeq ($(BR2_PACKAGE_GHOSTSCRIPT_FONTS),y)
IMAGEMAGICK_CONF_OPTS+= --with-gs-font-dir=/usr/share/fonts/gs endifOr maybe we should use $(GHOSTSCRIPT_FONTS_TARGET_DIR) here, instead of duplicating it?
baruch
Hm, the problem is that the issue will remain if ghostscript-fonts are not installed. I don't know the solution to that. It seems strange that imagemagick can not find a default font when 'convert -list font' shows many, ttf and otherwise.
Robert
PATCH 1/1 Allow imagemagick to find ghostscript fonts.
Hi Robert,
Quoted 36 lines · grepper
Quoted 35 lines · Baruch Siach
Quoted 20 lines · grepper
From: Robert Sohn <[email protected]>
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.xmlwill 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.Signed-off-by Robert Sohn <[email protected]>--- package/imagemagick/imagemagick.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/imagemagick/imagemagick.mk +0
-0package/imagemagick/imagemagick.mk IMAGEMAGICK_CONF_OPTS = \ · line 37
Quoted 6 lines
package/imagemagick/imagemagick.mk +2
-1@@ -33,7 +33,8 @@ IMAGEMAGICK_CONF_OPTS = \ --without-dps \ --without-gslib \ --without-fpx \ - --without-x + --without-x \ + --with-gs-font-dir=/usr/share/fonts/gsThese fonts are only available when the ghostscript-fonts is built, isn't it? If so, then this should be
ifeq ($(BR2_PACKAGE_GHOSTSCRIPT_FONTS),y)
IMAGEMAGICK_CONF_OPTS+= --with-gs-font-dir=/usr/share/fonts/gs endif
Quoted 5 lines
Quoted 2 lines
Or maybe we should use $(GHOSTSCRIPT_FONTS_TARGET_DIR) here, instead of duplicating it?
Hm, the problem is that the issue will remain if ghostscript-fonts are not installed. I don't know the solution to that.
The usual way to set a dependency package is to add a 'select' statement for that package in Config.in. In this case ghostscript-fonts is not a hard dependency, because imagemagick is quite functional without it, and its size is non negligible. Maybe adding a comment to the help text in Config.in would suffice.
What do others think?
Quoted 2 lines
It seems strange that imagemagick can not find a default font when 'convert -list font' shows many, ttf and otherwise.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 Allow imagemagick to find ghostscript fonts.
In reply to grepperHello Robert,
Sorry for the long delay in replying to your patch.
Quoted 7 lines · grepper
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.xmlwill 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.
Could you give a specific example use of imagemagick that triggers this problem, so that we can reproduce the problem on our side and investigate the possible solutions?
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 Allow imagemagick to find ghostscript fonts.
In reply to grepperOn Tue, Jun 16, 2015 at 4:12 AM, grepper <[email protected]> wrote:
Sorry for the slow response!
Quoted 9 lines
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.xmlwill 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.Signed-off-by Robert Sohn <[email protected]>
Committed after extending the commit message, thanks!
--
Bye, Peter Korsgaard