Jeff Sparkes writes:
I've got pango displaying the strings from the output_string
function in
redisplay-xlike-inc.c.
Pango wants utf-8 input. I have HAVE_XFT and MULE defined, so I'm getting
separate_textual_runs_xft_mule(), which is converting it into XftChar16,
which is probably UCS-2, not UTF-16?
I believe it's UTF-16, except that there's a comment saying we don't
handle anything outside the BMP. (There's really no point in talking
about UCS-2 any more, but that's outside the scope of this
discussion.)
You may as well use encode_unicode_char_1, I think, and just learn to
use Dynarrs. Here all you need to do is declare one, hand it to
encode_unicode_char_1, and then extract the data (probably as a
pointer and a length) and hand it to Pango. I guess you may need to
deallocate afterward. But all of the "interesting"w stuff is already
done in encode_unicode_char_1, you don't have to worry about it.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta