Re: insert text in a drawing area (gdk_draw_text deprecated)
- From: "chen.shengqi" <chen shengqi connet com tw>
- To: "Marco Mussini" <marcomus libero it>, <gtk-app-devel-list gnome org>
- Subject: Re: insert text in a drawing area (gdk_draw_text deprecated)
- Date: Thu, 14 Nov 2002 16:55:50 +0800
I use pango, it's ok
context=gtk_widget_get_pango_context(...);
layout=pango_layout_new(context);
fontd=pango_font_description_from string("courier 16");
pango_layout_set_font_description(layout,fontd);
attrlist=pango_attr_list_new()... add attr such as size color....
pango_layout_set_attr.....
pango_layout_set_text... must be utf8 text
gdk_draw_layout(...)
Hi all,
I must insert a text in a drawing area but API documentation say that
gdk_draw_text is deprecated;
I suppose that pango must be used for this purpose. What function could I
use? (or have you an example of code?)
I have read all old post but there isn't any subject with answer about this
argument,
Thank you,
Marco Mussini
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]