[pygtk] Font size
Frédéric
frederic.mantegazza at gbiloba.org
Wed Dec 10 20:48:52 WST 2008
Hi,
I would like to be able to change the font size of a specific widget; I
want it to use a font larger than the other one, whatever is the default
size (which I can set using .pygtkrc), or even the font name.
How can I do that?
I modify my widget font using:
modify_font(pango.FontDescription("Arial 10 Bold"))
If I do that, the font is correctly changed using .pygtkrc. But I use,
say:
modify_font(pango.FontDescription("Arial 16 Bold"))
then, this font is not changed.
Why? How to solve that? I would like to be able to avoid the name of the
font here, and to be able to use a relative size...
Thanks,
--
Frédéric
More information about the pygtk
mailing list