Skip to content

Commit

Permalink
Change default font to Comic Sans. Only for new installtions. YOU HAP…
Browse files Browse the repository at this point in the history
…PY NOW TUXEDAGE???
  • Loading branch information
langerhans committed Mar 1, 2014
1 parent ef4fdb0 commit 98da200
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -62,6 +62,15 @@ private ColorAndFontConstants() {
public static void init() {
MULTIBIT_DEFAULT_FONT_NAME = UIManager.get("Label.font") == null ? Font.DIALOG : ((Font) UIManager.get("Label.font"))
.getFontName();

String[] availFonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
for (String fontName: availFonts)
{
if (fontName.equals("Comic Sans MS"))
{
MULTIBIT_DEFAULT_FONT_NAME = fontName;
}
}
MULTIBIT_DEFAULT_FONT_STYLE = UIManager.get("Label.font") == null ? 0 : ((Font) UIManager.get("Label.font")).getStyle();
MULTIBIT_DEFAULT_FONT_SIZE = UIManager.get("Label.font") == null ? 13 : ((Font) UIManager.get("Label.font")).getSize() + 1;

Expand Down

0 comments on commit 98da200

Please sign in to comment.