Java Font from System getDefaultMonoFontSize()

Here you can find the source of getDefaultMonoFontSize()

Description

Get size of default monspaced font.

License

Open Source License

Declaration

public static int getDefaultMonoFontSize() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.Font;

public class Main {
    private static final Font MONOSPACED_FONT = Font.decode("Monospaced");

    /** Get size of default monspaced font.
    Can be used for setting the initial size of some GUI elements. */
    public static int getDefaultMonoFontSize() {
        return MONOSPACED_FONT.getSize();
    }//from w  w w  .  j  a v  a2 s.c o  m
}

Related

  1. getDefaultFont()
  2. getDefaultFont()
  3. getDefaultFontRenderContext()
  4. getDefaultFrc()
  5. getDefaultMapXMLCreatorFontName()
  6. getDefaultSansSerifFont()
  7. getSystemFontNames()
  8. getSystemFonts()
  9. getSystemTextHints()