Ar an triú lá de mí Aibréan, scríobh Jeff Sparkes:
I've got pango displaying the strings from the output_string
function in
redisplay-xlike-inc.c.
Excellent! And I’ve been occasionally building the GTK workspace over the
last few weeks, and getting a running XEmacs; thanks for that, it does make
a difference.
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?
It should be UTF-16, that’s what XftDrawString16 accepts. XEmacs only treats
it as UCS-2 at the moment, which is a shame, but with our font support
passing surrogates probably wouldn’t be much help anyway. (I’m not sure you
want to turn on HAVE_XFT at the same time as Pango with GTK2 and XFT;
HAVE_XFT means “use our XFT redisplay implementation on top of X11 and the
Athena widgets”).
But that’s irrelevant to you. The good news is the Xft code used to do
exactly what you want; see the separate_textual_runs_xft function in this
patch:
http://www-pu.informatik.uni-tuebingen.de/users/knauel/xemacs-xft/xft-xem...
There will be better long-term solutions, but this is enough for your
purposes at the moment, I think. Shout if you have any trouble understanding
it.
There isn't even a Qucs_2 anywhere. There is a unicode_convert
in
unicode.c, but I don't know how to use it, and it involves Dynarrs. I'm
not even 100% sure what I'm asking for!
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta