Unable to read font Arial-Bold
Posted: 2013-11-13T15:40:28-07:00
Hi,
This might be a php problem, but maybe somebody can help anyway
I installed 6.8.7-5 on an Ubuntu server.
Version: ImageMagick 6.8.7-5 Q16 x86_64 2013-11-10 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fontconfig freetype jng jp2 jpeg lcms lqr openexr pangocairo png tiff x xml zlib
I run php:
PHP Version 5.3.10-1ubuntu3.8
When i run the following command on a command line, all goes well:
However, if i run it through php exec, the font can not be found. A message in the apache error log shows:
convert: unable to read font `Arial-Bold' @ warning/annotate.c/RenderType/871.
When i run the exact command as www-data on a shell, it works good.
I have this issue with some fonts, most of the fonts work just fine.
The fonts are in: /usr/share/fonts/truetype/
When i do with php exec:
The Arial-Bold is missing (a lot self installed fonts are available)
When i do the same command on the prompt (also as www-data) it returns also Arial-Bold.
Anybody have an idea where i need to look for fixing this issue?
This might be a php problem, but maybe somebody can help anyway
I installed 6.8.7-5 on an Ubuntu server.
Version: ImageMagick 6.8.7-5 Q16 x86_64 2013-11-10 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fontconfig freetype jng jp2 jpeg lcms lqr openexr pangocairo png tiff x xml zlib
I run php:
PHP Version 5.3.10-1ubuntu3.8
When i run the following command on a command line, all goes well:
Code: Select all
convert -background none -density 72 -fill red -font Arial-Bold -pointsize 30 label:Atext out1.png
convert: unable to read font `Arial-Bold' @ warning/annotate.c/RenderType/871.
When i run the exact command as www-data on a shell, it works good.
I have this issue with some fonts, most of the fonts work just fine.
The fonts are in: /usr/share/fonts/truetype/
When i do with php exec:
Code: Select all
identify -list font
When i do the same command on the prompt (also as www-data) it returns also Arial-Bold.
Anybody have an idea where i need to look for fixing this issue?