Where to get 'PangoContext*' from?
- From: Petr Tomasek <tomasek etf cuni cz>
- To: gtk-i18n-list gnome org
- Subject: Where to get 'PangoContext*' from?
- Date: Wed, 20 Jan 2010 10:29:57 +0100
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]