15 lines
616 B
Plaintext
15 lines
616 B
Plaintext
% magick
|
|
|
|
# Simple text on a background
|
|
magick -font <font-list> -background <background-colour> -fill <foreground-colour> -pointsize <fontsize> label:'<text>' <file-name>
|
|
|
|
# Simple black text on a transparent background
|
|
magick -font <font-list> -background transparent -fill white -pointsize <fontsize> label:'<text>' <file-name>
|
|
|
|
# list fonts
|
|
magick -list font | less
|
|
|
|
$ font-list: magick -list font | sed -n 's/\W*Font: //p'
|
|
$ background-colour: magick -list color | awk '{print$1}' | grep -v 'gray\|grey' | tail -n +6
|
|
$ foreground-colour: magick -list color | awk '{print$1}' | grep -v 'gray\|grey' | tail -n +6
|