text attributes



text attributes (PangoAttribute) work with cairo?

i tried to set text attributes (with pango_layout_set_attributes) but i
obtain nothing: text remains without attributes

i tried to edit examples/cairosimple.c in pango source code, adding
these lines

lpattr = pango_attr_list_new ();
pattr = pango_attr_family_new ("Verdana");
pango_attr_list_insert (lpattr, pattr),
pango_layout_set_attributes (layout, lpattr);

and removing pango_layout_set_font_description

i'm using pango 1.14.8

Attachment: signature.asc
Description: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio firmata digitalmente



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