Annotate fails for unicode chars from broader set
Posted: 2012-03-19T10:17:25-07:00
I tried Times New Roman and other fonts. Regardless -- characters such as '∥', '⊞', '≅', and many others, including some composite (combining) characters from various alphabets are rendered as quesitonmarks by -->Annotate
(this is the output of the code below: http://www.flight.us/misc/myannot.jpg and this is a snapshot of the same text displayed in my OpenOffice WRiter, same system, same font: http://www.flight.us/misc/oowriter_unicode_render.jpg )
Any ideas how to get perlmagick to render these correctly?
More common symbols, and letters are rendered fine.
(this is the output of the code below: http://www.flight.us/misc/myannot.jpg and this is a snapshot of the same text displayed in my OpenOffice WRiter, same system, same font: http://www.flight.us/misc/oowriter_unicode_render.jpg )
Code: Select all
my $bi=new Image::Magick( size => '120x60');
$bi->Read('xc:white');
my $text='A ∥ ⊞ ≅ B';
$bi->Annotate(font=>$timesfont, pointsize=>20, fill=>'black', text=>$text,
encoding=>{UTF-8}, geometry=>'+20+40'
);
$bi->Write( "pix/myannot.jpg" );
More common symbols, and letters are rendered fine.