Hello, I have quite a few of URW East-European fonts and while they work fine with IM's Annotate, there's problem with a couple of char like s/S with caron (and some special chars). The encoding should be Latin2, but IM shows completely different glyph. I know the right glyph is there because I can see it when using UTF-8, but then the rest of the characters stop working. Eg
my $text_win = "wrong: š / right: áäčďéěíľĺňóôŕřšťúůýž"; # š is chr(154); my $text_utf = encode( 'utf8', decode( 'cp1250', $text_win ) ); $image->Annotate( font => "$fontpath/$font", pointsize => 30, x => 0, y => 40, fill => '#000', text => $text_win ); $image->Annotate( font => "$fontpath/$font", pointsize => 30, x => 0, y => 90, fill => '#F00', text => $text_utf ); In included picture: black is cp1250 encoding with everything but s/caron OK, red is UTF8 encoding with s/caron correct but half of the other accented characters are wrong. I don't know whether it's IM bug or bad font, but I would love to have some workaround. Any idea please? Thanks - Robert PS Will send font by email if necessary
_______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
