On Sunday 31 May 2009, Sander Jansen wrote:
> Or do:
>
> getApp()->getNormalFont()->destroy();
> getApp()->getNormalFont()->setFontDesc(newfontdescription);
> getApp()->getNormalFont()->create();
>
> and then do a global layout() / redraw so all widgets know about the new font.
Yes, that would work also. Basically, it would re-initialize the same font
object with new font data. All the widgets which have copied the default
font would instantly have the new font.
Since the new font has different metrics than the old one, and the font
was changed out from under each widget, an explicit layout is needed since
otherwise the widget isn't aware of the change.
- Jeroen
--
+----------------------------------------------------------------------------+
| Copyright (C) 18:50 05/31/2009 Jeroen van der Zijp. All Rights Reserved. |
+----------------------------------------------------------------------------+
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship.
http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users