Quote:
Originally posted by Dave Kelly
Let me suggest you download a copy of;
abs-guide-2.6.orig
there is some information on string length in some of the examples on strings.
It may help.
Dave
|
Thanks for your time Dave. But i was trying to get the length of a string in `pixels'. But after a few hours i found the solution and there is no need to dive into pixels:
Code:
convert button-empty.png -font Verdana -pointsize 13 -gravity center -draw "text 0,0 'Sample Button'" button-sample.png
This will add the label "Sample Button" to your button-empty.png file with centering it. Also if we want to find the length of a string in characters, this can be done by:
Code:
[baris@rhinox]$ echo "This is a 30 character string"|wc -c
30
Anyway, thanks again Dave.