right, that's why I was saying we need to figure out the best way to
restore the default font. That can be tricky, because resolving the default
font is a fairly complex process and as far as I remember, setting an
invalid QFont() on the widget is not sufficient.


On Sun, Feb 10, 2013 at 12:48 PM, Pietro Berkes <notifications@github.com>wrote:

> In enaml/qt/qt_widget.py:
>
> > @@ -265,7 +266,8 @@ def set_font(self, font):
> >              The font for the widget as a CSS font string.
> >
> >          """
> > -        pass
> > +
> > +        self.widget().setFont(QtGlobalFontCache[font])
>
> What should happen if I do
>
> widget.set_font('a valid font description')
> widget.set_font('')
>
> ?
>
> If I just test for boolean truth, the second statement does not do anything
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/enthought/enaml/pull/256/files#r2955616>..
>
>