On Wed, 26 Sep 2001, Michael Ciavarella wrote: > Is there an easy way within PyGtk to dynamically > adjust the font size within a label so that the > label text always totally fills the label?
In PyGtk 1, no easy way; fonts don't behave like that. You'd need to render the font as a bitmap and scale it using a scaling algorithm. You could do discrete steps by handling the window resize and shifting the font size a notch for each resize, but I don't think that's "easy" at all. Don't know if pango helps there (if you can specify a continuous font size spectrum) in gtk2, but ask on the gtk-app-list to get a good answer. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
