LWN.net Logo

Advertisement

Advanced thin client solution for Linux, based on Open Source. Mix Windows and Linux, 10 licenses for free!

Advertise here

AIST and Free Standards Group Release Multilingual C Library

AIST and Free Standards Group Release Multilingual C Library

Posted Mar 3, 2004 7:54 UTC (Wed) by antony_shen (guest, #19881)
In reply to: AIST and Free Standards Group Release Multilingual C Library by jamesh
Parent article: AIST and Free Standards Group Release Multilingual C Library

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.


(Log in to post comments)

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