1

Imagemagic's convert util (render simple label feature) renders only some of utf-8 symbols.

Here is example:

convert -background white -fill black \
 -density 600x600 -size 1346x756 -font DejaVu-Sans -gravity center \
 'label:⌁ Electricity\n🔌 Chargers\n🔋 Powerbanks' \
 out.pdf # or out.png

enter image description here

It renders only ⌁ , not other 🔌, 🔋 symbols.

What's the most handy, appropriate way to fit it and how: should I install more fonts or use better font?

3

I've found font 'Symbola', so this works:

convert -background white -fill black \
 -density 600x600 -size 1346x756 -font Symbola -gravity center \
 'label:⌁ Electricity\n🔌 Chargers\n🔋 Powerbanks' \
 out_with_Symbola.png

Output:

enter image description here

Thanks for hints in:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.