font not shown
Posted: 2007-02-25T07:17:20-07:00
I am new to IM. I got the below problem about annotate or font related.
We I using convert and font/text related. All the text cannot come out from the target image file.
I searched in this forum and found it may coz by the ttf file on the server ??
I tried to find the arial.ttf from my window XP and then upload to my host server. But it still failed. My command using is as below:
/usr/bin/convert -font $full_path_to_public_program/arial.ttf $aFromfile -append -pointsize 30 -gravity North -annotate 0 'Hello' $Tofile
Anyone can give me some advice? Thank you.
P.s. when I run system("exec 2>&1; /usr/local/bin/identify -debug configure -list type");
I got the below messages:
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: utility.c/unknown/805/Configure
Command line: /usr/local/bin/identify{-debug}{configure}{-list}{type}
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.3.1/config/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.3.1/config/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.3.1/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.3.1/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: type.c/unknown/928/Configure
Loading type map "/usr/local/lib/ImageMagick-6.3.1/config/type.xml" ...
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: type.c/unknown/928/Configure
Loading type map "/usr/local/lib/ImageMagick-6.3.1/config/type-ghostscript.xml" ...
Path: /usr/local/lib/ImageMagick-6.3.1/config/type-ghostscript.xml
Name Family Style Stretch Weight
--------------------------------------------------------------------------------
AvantGarde-Book AvantGarde Normal Normal 400
AvantGarde-BookOblique AvantGarde Oblique Normal 400
AvantGarde-Demi AvantGarde Normal Normal 600
AvantGarde-DemiOblique AvantGarde Oblique Normal 600
Bookman-Demi Bookman Normal Normal 600
Bookman-DemiItalic Bookman Italic Normal 600
Bookman-Light Bookman Normal Normal 300
Bookman-LightItalic Bookman Italic Normal 300
Courier Courier Normal Normal 400
Courier-Bold Courier Normal Normal 700
Courier-BoldOblique Courier Oblique Normal 700
Courier-Oblique Courier Oblique Normal 400
fixed Helvetica Normal Normal 400
Helvetica Helvetica Normal Normal 400
Helvetica-Bold Helvetica Normal Normal 700
Helvetica-BoldOblique Helvetica Italic Normal 700
Helvetica-Narrow Helvetica Narrow Normal Condensed 400
Helvetica-Narrow-Bold Helvetica Narrow Normal Condensed 700
Helvetica-Narrow-BoldOblique Helvetica Narrow Oblique Condensed 700
Helvetica-Narrow-Oblique Helvetica Narrow Oblique Condensed 400
Helvetica-Oblique Helvetica Italic Normal 400
NewCenturySchlbk-Bold NewCenturySchlbk Normal Normal 700
NewCenturySchlbk-BoldItalic NewCenturySchlbk Italic Normal 700
NewCenturySchlbk-Italic NewCenturySchlbk Italic Normal 400
NewCenturySchlbk-Roman NewCenturySchlbk Normal Normal 400
Palatino-Bold Palatino Normal Normal 700
Palatino-BoldItalic Palatino Italic Normal 700
Palatino-Italic Palatino Italic Normal 400
Palatino-Roman Palatino Normal Normal 400
Symbol Symbol Normal Normal 400
Times-Bold Times Normal Normal 700
Times-BoldItalic Times Italic Normal 700
Times-Italic Times Italic Normal 400
Times-Roman Times Normal Normal 400
We I using convert and font/text related. All the text cannot come out from the target image file.
I searched in this forum and found it may coz by the ttf file on the server ??
I tried to find the arial.ttf from my window XP and then upload to my host server. But it still failed. My command using is as below:
/usr/bin/convert -font $full_path_to_public_program/arial.ttf $aFromfile -append -pointsize 30 -gravity North -annotate 0 'Hello' $Tofile
Anyone can give me some advice? Thank you.
P.s. when I run system("exec 2>&1; /usr/local/bin/identify -debug configure -list type");
I got the below messages:
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: utility.c/unknown/805/Configure
Command line: /usr/local/bin/identify{-debug}{configure}{-list}{type}
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.3.1/config/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.3.1/config/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.3.1/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.3.1/type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: configure.c/unknown/482/Configure
Searching for configure file: "type.xml"
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: type.c/unknown/928/Configure
Loading type map "/usr/local/lib/ImageMagick-6.3.1/config/type.xml" ...
2007-02-25T21:07:41+08:00 0:01 0.000u 6.3.1 Configure identify[9576]: type.c/unknown/928/Configure
Loading type map "/usr/local/lib/ImageMagick-6.3.1/config/type-ghostscript.xml" ...
Path: /usr/local/lib/ImageMagick-6.3.1/config/type-ghostscript.xml
Name Family Style Stretch Weight
--------------------------------------------------------------------------------
AvantGarde-Book AvantGarde Normal Normal 400
AvantGarde-BookOblique AvantGarde Oblique Normal 400
AvantGarde-Demi AvantGarde Normal Normal 600
AvantGarde-DemiOblique AvantGarde Oblique Normal 600
Bookman-Demi Bookman Normal Normal 600
Bookman-DemiItalic Bookman Italic Normal 600
Bookman-Light Bookman Normal Normal 300
Bookman-LightItalic Bookman Italic Normal 300
Courier Courier Normal Normal 400
Courier-Bold Courier Normal Normal 700
Courier-BoldOblique Courier Oblique Normal 700
Courier-Oblique Courier Oblique Normal 400
fixed Helvetica Normal Normal 400
Helvetica Helvetica Normal Normal 400
Helvetica-Bold Helvetica Normal Normal 700
Helvetica-BoldOblique Helvetica Italic Normal 700
Helvetica-Narrow Helvetica Narrow Normal Condensed 400
Helvetica-Narrow-Bold Helvetica Narrow Normal Condensed 700
Helvetica-Narrow-BoldOblique Helvetica Narrow Oblique Condensed 700
Helvetica-Narrow-Oblique Helvetica Narrow Oblique Condensed 400
Helvetica-Oblique Helvetica Italic Normal 400
NewCenturySchlbk-Bold NewCenturySchlbk Normal Normal 700
NewCenturySchlbk-BoldItalic NewCenturySchlbk Italic Normal 700
NewCenturySchlbk-Italic NewCenturySchlbk Italic Normal 400
NewCenturySchlbk-Roman NewCenturySchlbk Normal Normal 400
Palatino-Bold Palatino Normal Normal 700
Palatino-BoldItalic Palatino Italic Normal 700
Palatino-Italic Palatino Italic Normal 400
Palatino-Roman Palatino Normal Normal 400
Symbol Symbol Normal Normal 400
Times-Bold Times Normal Normal 700
Times-BoldItalic Times Italic Normal 700
Times-Italic Times Italic Normal 400
Times-Roman Times Normal Normal 400