Where to get 'PangoContext*' from?



Hello!

I'd like to use pango_itemize in a command-line utility to split an
unicode string into parts of same script. I don't need any other pango
functionality (in this utility, of course ;-).

Now, pango_itemize() wants PangoContext* as it's first parameter,
but if I create it using pango_context_new() it complains:

------------------------------------------------------------------------
(process:14724): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function

(process:14724): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:14724): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(process:14724): Pango-CRITICAL **: pango_itemize: assertion `context != NULL' failed
------------------------------------------------------------------------

If I would use pango_font_map_create_context() as suggested in the doc's
where do I get PangoFontMap* from?
(And I don't undestand anyway, frankly, why would one need 
PangoFontMap just for itemizing a string?)

Thank You!
Petr

-- 
Petr Tomasek <http://www.etf.cuni.cz/~tomasek>
Jabber: butrus jabbim cz
SIP: butrus ekiga net


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