Re: displaying a multilanguage file



On Sun, 2003-02-23 at 18:21, john vivian wrote:
        Would anyone know where i might find information on how to
        load a file with characters from several languages into a
        GtkTextBuffer?  Are there glib functions to handle this?

It just works, nothing different than inserting text one language.

To extend on that:

 - All text in GTK+ must be encoded in UTF-8. There are routines
   in GLib for converting between different encodings.

 - You may get better rendering by telling Pango what language
   something is using the "language" property of GtkTextTag.

Regards,
                                      Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]