On Mon, 15 Oct 2001, sonata wrote:

> There is a problem when I want to change the order of the characters in
> a string.
> I "grep" /usr/include;/usr/src/~/xc/,but nothing useful found out
> Whether itis defined in any other dirs?
> I was puzzled how to deal with Mongolian.The langurage needs characters
> up to down and lines left to right. Maybe i must add define to the Xlib.

I'm not sure what exactly you mean, but XDrawString is defined in
xc/lib/X11/Text.c .

If you want to modify XDrawString you may also need to modify similar
functions such as XDrawImageString (ImText.c), XDrawString16 (Text16.c)
and XDrawImageString16 (ImText16.c). Maybe also change some functions of
Xft.

But are you sure that this is what you want to do? If the application
won't be aware of your transformation, some strange side-effects can
happen. Consider the case where the user selects part of of a text with
the mouse. That selected part needs to be drawn seperately, in a different
XDrawString call, and thus will be transformed seperately.

Generally The right place to add such a support is generally the
widget-set level.  For instance, have a look at pango (http://pango.org/)
which is used in gtk2 . QT is also a prime candidate (even though QT3 is
probably deep into a feature freeze right now, while in the last beta).

HTH

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir

_______________________________________________
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n

Reply via email to