Single letter labels are not centered properly
Posted: 2011-10-29T19:24:11-07:00
Hi
This command displays a message centered inside a black rectangle.
![Image](http://tabi.org/timur/test1.png)
However, if I tell it to write a single character, the alignment is off:
![Image](http://tabi.org/timur/test2.png)
In this case, the letter "A" touches the top of the box. How can I fix this?
This command displays a message centered inside a black rectangle.
Code: Select all
convert -size 30x30 -background '#00000080' -fill white -gravity center label:ABC test1.png
![Image](http://tabi.org/timur/test1.png)
However, if I tell it to write a single character, the alignment is off:
Code: Select all
convert -size 30x30 -background '#00000080' -fill white -gravity center label:A test2.png
![Image](http://tabi.org/timur/test2.png)
In this case, the letter "A" touches the top of the box. How can I fix this?