convert text to png not working with IM-6.8.3-10
Posted: 2013-04-04T02:37:32-07:00
Hi,
I am using IM-6.8.3-10 on Solaris. I tried to convert a text to png file by using the following command.
$ convert label:"HELLO" 1.png
1.png file gets created but without the text "HELLO"
While trying to debug the issue, I found that IM-6.8.3 is using system fonts instead of the fonts specified in type-ghostscript.xml file.
Snippet from debug log:
-----------------
2013-03-20T13:17:45+00:00 0:00.020 0.020u 6.8.3 Configure convert[2094]: type.c/LoadTypeList/975/Configure
Loading type configure file "/usr/lib/ImageMagick-6.8.3/config-Q16/type.xml" ...
2013-03-20T13:17:45+00:00 0:00.020 0.020u 6.8.3 Configure convert[2094]: type.c/LoadTypeList/975/Configure
Loading type configure file "/usr/lib/ImageMagick-6.8.3/config-Q16/type-ghostscript.xml" ...
2013-03-20T13:17:45+00:00 0:00.350 0.300u 6.8.3 Annotate convert[2094]: annotate.c/RenderFreetype/1219/Annotate
Font /usr/X11/lib/X11/fonts/75dpi/helvR12-ISO8859-1.pcf; font-encoding none; text-encoding none; pointsize 12
----------------
If a particular font is present as system font then IM doesn't care about whatever is mentioned in the type-ghostscript.xml file.
Is there a way to prioritize the fonts path that should be used ? I complied the code using configure option '--with-fontpath=/usr/share/ghostscript/fonts', but that didn't make any difference.
Thanks,
Sonam
I am using IM-6.8.3-10 on Solaris. I tried to convert a text to png file by using the following command.
$ convert label:"HELLO" 1.png
1.png file gets created but without the text "HELLO"
While trying to debug the issue, I found that IM-6.8.3 is using system fonts instead of the fonts specified in type-ghostscript.xml file.
Snippet from debug log:
-----------------
2013-03-20T13:17:45+00:00 0:00.020 0.020u 6.8.3 Configure convert[2094]: type.c/LoadTypeList/975/Configure
Loading type configure file "/usr/lib/ImageMagick-6.8.3/config-Q16/type.xml" ...
2013-03-20T13:17:45+00:00 0:00.020 0.020u 6.8.3 Configure convert[2094]: type.c/LoadTypeList/975/Configure
Loading type configure file "/usr/lib/ImageMagick-6.8.3/config-Q16/type-ghostscript.xml" ...
2013-03-20T13:17:45+00:00 0:00.350 0.300u 6.8.3 Annotate convert[2094]: annotate.c/RenderFreetype/1219/Annotate
Font /usr/X11/lib/X11/fonts/75dpi/helvR12-ISO8859-1.pcf; font-encoding none; text-encoding none; pointsize 12
----------------
If a particular font is present as system font then IM doesn't care about whatever is mentioned in the type-ghostscript.xml file.
Is there a way to prioritize the fonts path that should be used ? I complied the code using configure option '--with-fontpath=/usr/share/ghostscript/fonts', but that didn't make any difference.
Thanks,
Sonam