I am generating some buttons using ImageMagick. However, I am not able to set the spacing between the letters in generated image. Command which I use:
convert -gravity center button_subscribeme.png -font /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf -fill white -draw "text 0,0 'CLICK ME'" -font_stretch 10 render/mailbox-submit.png
throws:
convert: unrecognized option `-font_stretch' @ error/convert.c/ConvertImageCommand/1561.
So I guess font_strech is not proper option. How I can achieve it? Generated text is too narrow.
There is no ImageMagick parameter named
-font_stretchthat I know of. However, there is-stretch.But I don’t think that
-stretchreally works with fonts. In any case, to find out what sort of values are possible, just run:and see the result:
Use
-kerning!Better use the
-kerningcommandline parameter. It takes positive as well as negative values:or
Works for me on ImageMagick version 6.7.8-3 2012-07-19 on Mac: