LWN.net Logo

AIST and Free Standards Group Release Multilingual C Library

AIST and Free Standards Group Release Multilingual C Library

Posted Mar 3, 2004 5:50 UTC (Wed) by jamesh (subscriber, #1159)
Parent article: AIST and Free Standards Group Release Multilingual C Library

The web site for this library is http://www.m17n.org/m17n-lib/ (mentioned at the bottom of the press release).

There seems to be a fair bit of overlap between this library and the Pango library used for multilingual text rendering by GTK. It seems a bit surprising that they don't even mention Pango while talking about how their library could be used by Gnome.


(Log in to post comments)

AIST and Free Standards Group Release Multilingual C Library

Posted Mar 3, 2004 7:54 UTC (Wed) by antony_shen (guest, #19881) [Link]

Seems really like what Pango works. But I don't know how to use Pango, since there is no tutorial to tell how to use it. Maybe someone know where to dig first. If you know, please tell me. I want to try it.

AIST and Free Standards Group Release Multilingual C Library

Posted Mar 3, 2004 8:39 UTC (Wed) by jamesh (subscriber, #1159) [Link]

For basic use, you need not touch any of the Pango APIs directly. Every time you pass some text to a GTK API to be displayed on the screen, you are indirectly using Pango. Try creating a GtkLabel displaying some intermixed english and hebrew text, for instance. If you are using standard GTK widgets, you get many of these features for free.

If you need to do more involved work, you can use gtk_widget_get_pango_context() to get a reference to a PangoContext object. From there, you can create a PangoLayout (an object representing a unit of text). You can then draw the text to some window with gdk_draw_layout().

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds