Page 1 of 1

Change the font and size of a text label

Posted: 2008-07-29T01:23:31-07:00
by justme24
Hello is it possible to change the font and size of a text label like, composite -geometry +48+41 label:Anthony?

Re: Change the font and size of a text label

Posted: 2008-07-29T14:54:42-07:00
by el_supremo
The composite command has a -font option but it appears that it doesn't have the -pointsize option (which is available in the convert command). It looks like you would have to use convert to get both and if you are trying to generate a "signature" on an image, convert can do that too. For example, this command will add the name "Anthony" to the bottom left corner of the built-in logo: image.

Code: Select all

convert logo: -font Times-New-Roman -pointsize 24 -gravity southwest -annotate +10+10 "Anthony" logo_sig.jpg
Pete

Re: Change the font and size of a text label

Posted: 2008-07-29T18:47:06-07:00
by anthony
In the mean time, if no -pointsize is given label: can use -size to
define the final size of the label image (adjusting the font size to fit that size). and "composite" does understand -size!

Alternatively you can use the "convert" command -composite instead of using "composite", seeing as you are not using one of the "composite" command only features (EG: image composite tiling, -displace, -blend, -dissolve).