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 8:39 UTC (Wed) by jamesh (subscriber, #1159)
In reply to: AIST and Free Standards Group Release Multilingual C Library by antony_shen
Parent article: AIST and Free Standards Group Release Multilingual C Library

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().


(Log in to post comments)

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