Text Align with Pango
Posted: 2013-12-12T11:42:41-07:00
Hello!
I'm currently using ImageMagick with Pango and the image consists in a background with three texts.
A main text on the top and two others in the footer. I want them align on the right side, but I can't find a pango command to do so. I also tried "justify", just to see the effect and it didn't work. Am I doing anything wrong? My command is:
My questions are:
1. Am I doing anything wrong?
2. Is there a Pango+IM command to align footer #1 and footer #2 to the right?
3. Is there a Pango+IM command to vertical align the main text to the bottom?
Thanks a lot for your attention!
I'm currently using ImageMagick with Pango and the image consists in a background with three texts.
A main text on the top and two others in the footer. I want them align on the right side, but I can't find a pango command to do so. I also tried "justify", just to see the effect and it didn't work. Am I doing anything wrong? My command is:
Code: Select all
convert -size 390x30 -background transparent -define pango:justify=true pango:"footer 1" footer1.png
convert -size 390x30 -background transparent -define pango:justify=true pango:"footer 2" footer2.png
convert -size 390x390 -background transparent -define pango:wrap=word-char pango:"main text" main.png
convert -size 512x512 \
-page +0+0 /opt/images/backgrounds/green.png \
-page +61+61 -size 390x390 footer1.png \
-page +55+447 -size 390x30 footer2.png \
-page +55+465 -size 390x30 main.png \
-layers flatten final-image.jpg
1. Am I doing anything wrong?
2. Is there a Pango+IM command to align footer #1 and footer #2 to the right?
3. Is there a Pango+IM command to vertical align the main text to the bottom?
Thanks a lot for your attention!