> pango.FontDescription is what you want:
>
> import gtk
> import pango
>
> ...
>
> fd = pango.FontDescription()
> fd.set_family("Serif")
> fd.set_style(pango.STYLE_ITALIC)
> fd.set_weight(pango.WEIGHT_BOLD)
> fd.set_size(12 * pango.SCALE)
>
>
> entry = gtk.Entry()
> entry.modify_font(fd)
>
> ...
>
> See
> http://www.moeraki.com/pygtkreference/pygtk2reference/class-pangofontdescription.html
> for more details.
>
>
> Martin Grimme
Thanks. It complained that the pango object has no SCALE attribute, but
plugging in 1024 instead made it work.
Dave
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/