Code: Select all
convert label:ღтестღ image.jpg
as a result of this command i get image with text
how can I make imagemagick draw such characters on images??тест?
Code: Select all
convert label:ღтестღ image.jpg
how can I make imagemagick draw such characters on images??тест?
Code: Select all
$ convert -list font |grep -i ubuntu
Font: Ubuntu-Bold
family: Ubuntu
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf
Font: Ubuntu-Bold-Italic
family: Ubuntu
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-BI.ttf
Font: Ubuntu-Condensed-Regular
family: Ubuntu Condensed
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-C.ttf
Font: Ubuntu-Italic
family: Ubuntu
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-RI.ttf
Font: Ubuntu-Light
family: Ubuntu
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-L.ttf
Font: Ubuntu-Light-Italic
family: Ubuntu
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-LI.ttf
Font: Ubuntu-Mono-Bold
family: Ubuntu Mono
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-B.ttf
Font: Ubuntu-Mono-Bold-Italic
family: Ubuntu Mono
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-BI.ttf
Font: Ubuntu-Mono-Italic
family: Ubuntu Mono
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-RI.ttf
Font: Ubuntu-Mono-Regular
family: Ubuntu Mono
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf
Font: Ubuntu-Regular
family: Ubuntu
glyphs: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
Code: Select all
printf "тест \U10E6" | convert -font Ubuntu-Regular -background lightblue -fill blue -pointsize 36 label:@- label_quotes.gif
Now it works with this font. Thank you very muchmagick wrote:You need a font that has a glyph defined for \U10E6. We use Arial Unicode MS and the character renders properly:
- convert -pointsize 48 -font arial-unicode.ttf label:ღтестღ label.png