Pango Additions
Posted: 2012-02-29T19:47:41-07:00
This topic was split and moved out of IMv7 What is Happening, and turned into a separate topic
The various formatting features are available now as part of captions new use of 'pango'.
This is a new addition and still evolving... 
The pango text file is downloadable from
https://dl.dropbox.com/u/9500683/pango_test.txt
The reason a `cat ...` is used is because since the addition the '@' file read has been broken!
Other things broken is the use of colors!
The more direct pango way of doing this is... 
Note however the size may be different due to density changes (IM defaults to 72, pango to display or 96 in my case)
ASIDE: I always felt it was better to make it a seperate coder such as "pango:", instead of changing "caption:" in such a dramatic way and requiring the use of a define. Though it does make some sense (so as to allow other text to image convertors)
As for kerning. That is not up to IM but the delegate libraries IM uses.
Other features are typically handled through font selection.
The various formatting features are available now as part of captions new use of 'pango'.
This is a new addition and still evolving...
Code: Select all
convert -define caption:markup=true \
-define caption:justify=center \
caption:"`cat pango_test.txt`" show:

The pango text file is downloadable from
https://dl.dropbox.com/u/9500683/pango_test.txt
The reason a `cat ...` is used is because since the addition the '@' file read has been broken!

Other things broken is the use of colors!
The more direct pango way of doing this is...
Code: Select all
pango-view --align=center --markup pango_test.txt

Note however the size may be different due to density changes (IM defaults to 72, pango to display or 96 in my case)
ASIDE: I always felt it was better to make it a seperate coder such as "pango:", instead of changing "caption:" in such a dramatic way and requiring the use of a define. Though it does make some sense (so as to allow other text to image convertors)
As for kerning. That is not up to IM but the delegate libraries IM uses.
Other features are typically handled through font selection.