* Update the applications fonts.
*/
void updateApplicationFonts()
{
final LAFPreferences prefs = _plugin.getLAFPreferences();
FontInfo fi = prefs.getMenuFontInfo();
String[] keys = FONT_KEYS[FONT_KEYS_ARRAY_MENU];
for (int i = 0; i < keys.length; ++i)
{
if (prefs.isMenuFontEnabled())
{
if (fi != null)
{
UIManager.put(keys[i], fi.createFont());
}
}
else
{
UIManager.put(keys[i], _origUIDefaults.getFont(keys[i]));
}
}
fi = prefs.getStaticFontInfo();
keys = FONT_KEYS[FONT_KEYS_ARRAY_STATIC];
for (int i = 0; i < keys.length; ++i)
{
if (prefs.isStaticFontEnabled())
{
if (fi != null)
{
UIManager.put(keys[i], fi.createFont());
}
}
else
{
UIManager.put(keys[i], _origUIDefaults.getFont(keys[i]));
}
}
fi = prefs.getOtherFontInfo();
keys = FONT_KEYS[FONT_KEYS_ARRAY_OTHER];
for (int i = 0; i < keys.length; ++i)
{
if (prefs.isOtherFontEnabled())
{
if (fi != null)
{
UIManager.put(keys[i], fi.createFont());
}
}
else
{
UIManager.put(keys[i], _origUIDefaults.getFont(keys[i]));