> Retrieve the pango context from the main widget and then get the list of > the font families in the pango context and filter them for monospace fonts > e.g.: > > context = gtk.Window().get_pango_context() > monofonts = [fam for fam in context.list_families() if fam.is_monospace()]
Thanks! Wow - that's really easy. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
