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.
Sander
On Sat, May 30, 2009 at 10:51 PM, Jeroen van der Zijp <
jeroen@...> wrote:
> On Saturday 30 May 2009, you wrote:
>> Thank you.
>>
>> If I understand it correctly, the following scenario should work.
>>
>> 1. Let user select the font for startup.
>> 2. Inform user the font will take effect on next startup.
>
> That would work.
>
>> If this is true, I hope the following quesiton is sensible.
>>
>> What are the section and keywords in registry for application startup font?
>
> Look in file ~/.foxrc/<vendorkey>/<appkey>. You can add a registy key
> like:
>
> [SETTINGS]
> normalfont=helvetica [adobe],90,medium,regular,,iso10646-1
>
> Note that the ControlPanel application changes this key in the file
> ~/.foxrc/Desktop, which will affect all FOX applications.
>
> The above pertains to Linux; on Windows, you'll find the same key structure in
> the system registry.
>
>
> Hope this helps,
>
>
> - Jeroen
>
>
> --
> +----------------------------------------------------------------------------+
> | Copyright (C) 22:40 05/30/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>
--
"And any fool knows a dog needs a home
A shelter from pigs on the wing"
------------------------------------------------------------------------------
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