[magick-users] UTF-8 and X11 iso10646-1 fonts using C++ API on linux
Greg Denton
greg.denton at gmail.com
Mon Feb 2 09:36:23 PST 2009
Still looking for any info on UTF-8 font support. Thanks.
On Mon, Jan 19, 2009 at 5:29 PM, Greg Denton <greg.denton at gmail.com> wrote:
> Trying to write UTF-8 text to an image without any luck. I've spent
> several hours reading docs and googling.
>
> /usr/bin/xlsfonts shows:
> ...
> -adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso10646-1
> -adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1
> ...
>
> (BTW, this seems like an excellent page for these fonts:
> http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html)
>
> program has:
> img.font("-adobe-helvetica-medium-r-normal--10-100-75-75-p-56-iso10646-1");
> img.textEncoding("UTF-8");
> img.annotate(s, Magick::Geometry(0, 0, x, y));
>
> The string "s" has the UTF-8 "cent" sign (0xC2, 0xA2), but it shows as
> 2 chars, per ISO 8859.
>
> My guess is that textEncoding does not work with the X11 bitmapped
> fonts, but I can't find anything at all on the web (should be some
> discussion somewhere).
>
> Is there any way to do UTF-8 with the X11 bitmapped fonts? Thanks.
>
More information about the Magick-users
mailing list