According to a pygtk2 doc on faq.pygtk.org The way to change a font is by a definition like so:
...
label = gtk.Label("MyLabel")
label.modify_font(pango.FontDescription("sans 48"))
...
What is the equivalent in pyGtk3?
I was looking to avoid the use of a gtk css definition. Though I would happily accept an answer that utilizes gtk's css support.
My target font is gnu unifont (unifont medium
), in case that changes anything; This font is readily available in tty format.
I've assumed at this point that applying a font to a label is similar to applying a font to a table cell, though an example of both would be ideal.
The latest pygtk3 docs don't appear to cover this topic whatsoever: http://python-gtk-3-tutorial.readthedocs.org/en/latest/label.html, and font is hardly mentioned accross the entirety of the documentation.