The creation fails when the text contains "weird characters" like & öäå etc.:
Code: Select all
Pango-WARNING **: pango_layout_set_markup_with_accel: Error on line 3: Entity name ' some ö' is not known
convert: Error on line 3: Entity name ' some ö' is not known `<span size="55555">\npiekoz - Turntable Man
(what i should've done) & some öä</span>' @ error/pango.c/ReadPANGOImage/342.
Even when I manually write out '&', it fails:
Code: Select all
Pango-WARNING **: pango_layout_set_markup_with_accel: Error on line 2: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
convert: Error on line 2: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as & `<span size="55555">\nbla & bla</span>' @ error/pango.c/ReadPANGOImage/342.
What's going on? I feel like I'm missing something obvious here; surely pango's purpose is to make these kind of things easier?
Code: Select all
$> convert --version
Version: ImageMagick 6.9.8-3 Q16 x86_64 2017-03-25 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib
$> bash --version
GNU bash, version 4.4.12(1)-release (x86_64-unknown-linux-gnu)