From: Andrew Dunbar (hippietrail@yahoo.com)
Date: Sun Aug 18 2002 - 02:35:02 EDT
Dom wrote:
<snip>
> I also forgot that I didn't see a way to pass a
> unicode string to IM's Drawable class, or even a
> string with an associated encoding (eg ISO-8859-2
> or UTF-8) which would be an acceptable work-around.
> I'll see what I can do about this.
For some reason this interested me so I looked through
ImageMagick and there is support for text encodings
but the support is not carried through to the C++
interface, Magick++.
magick/draw.c needs a function "DrawSetEncoding"
and Magick++/lib/Drawable.cpp needs a member function
"Magick::DrawableEncoding"
we would then need a line like:
pushDrawable ( Magick::DrawableEncoding ( "UTF-8" ) )
;
in GR_MagickGraphics::newCanvas probably just before
we call Magick::DrawableFont
or some variation along these lines. In any case we
need to add a little to ImageMagick that'll be useful
for everyone.
By the way, it looks like ImageMagick uses the locale
setting to decide the default encoding of the string
which may be UTF-8. But this may depend on other
things too.
Hope this proves of some use (: Andrew.
=====
http://linguaphile.sourceforge.net/cgi-bin/translator.pl http://www.abisource.com
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
This archive was generated by hypermail 2.1.4 : Sun Aug 18 2002 - 02:38:24 EDT