On Tue, 10 Jun 2008 23:19:48 +0530 "naveen khajuria" <[EMAIL PROTECTED]> wrote:
> Hi All > > I wish to write an X Windows program in C to > create a window and write some text on the window. > The problem is that I am unable to grasp how to > render hindi text on an X Window using a X window > system APIs in C. Apparently, Xlib now has calls to render UTF-8 text. I have never used them, so cannot comment on the degree to which Indic text is supported, nor on how to write such a program. In any case, why are you using raw Xlib? > I could also use Gtk to do the job but the problem is > the same, I dont know how to use hindi font in GTK also. [...] With GTK, this is transparent to the programmer, i.e., all internal string handling is in UTF-8 by default, and text entry boxes, etc., render using Pango. If you are using C, you have to make sure that any strings that you pass in are also UTF-8. This is easier with languages like Python, which use UTF-8 by default. Python, and pygtk make programming GUIs that handle Indic text trivial. Please email me offlist, and I will send you a couple of example programs using pygtk. Regards, Gora _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22-24, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
