Update of /cvsroot/arianne/stendhal/src/games/stendhal/client
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv16988/src/games/stendhal/client
Modified Files:
stendhal.java
Log Message:
Support user specified default font size
Index: stendhal.java
===================================================================
RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/stendhal.java,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** stendhal.java 3 Jul 2012 19:34:07 -0000 1.138
--- stendhal.java 1 Dec 2012 07:52:02 -0000 1.139
***************
*** 20,23 ****
--- 20,24 ----
import games.stendhal.client.gui.styled.StyledLookAndFeel;
import games.stendhal.client.gui.styled.WoodStyle;
+ import games.stendhal.client.gui.wt.core.WtWindowManager;
import games.stendhal.client.update.ClientGameConfiguration;
import games.stendhal.common.Debug;
***************
*** 242,246 ****
try {
! UIManager.setLookAndFeel(new StyledLookAndFeel(WoodStyle.getInstance()));
} catch (UnsupportedLookAndFeelException e) {
/*
--- 243,250 ----
try {
! StyledLookAndFeel look = new StyledLookAndFeel(WoodStyle.getInstance());
! UIManager.setLookAndFeel(look);
! int fontSize = WtWindowManager.getInstance().getPropertyInt("ui.font_size", 12);
! look.setDefaultFontSize(fontSize);
} catch (UnsupportedLookAndFeelException e) {
/*
***************
*** 255,258 ****
--- 259,263 ----
final Profile profile = Profile.createFromCommandline(args);
SwingUtilities.invokeLater(new Runnable() {
+ @Override
public void run() {
if (profile.isValid()) {
***************
*** 268,271 ****
--- 273,277 ----
SwingUtilities.invokeLater(new Runnable() {
+ @Override
public void run() {
j2DClient locclient = new j2DClient(client, userContext);
|