List Info

Thread: text attributes




text attributes
country flaguser name
Italy
2007-04-01 04:55:58
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

_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: SOLVED text attributes
country flaguser name
Italy
2007-04-01 09:34:04
Il giorno dom, 01/04/2007 alle 11.55 +0200, Andrea Zagli ha
scritto:
> [...]

i simply didn't understand how attributes work; in
particular i left
start_index and end_index to 0

_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )