Java Swing Font Set setAntiAlisingFont()

Here you can find the source of setAntiAlisingFont()

Description

set Anti Alising Font

License

Open Source License

Declaration

private static void setAntiAlisingFont() 

Method Source Code

//package com.java2s;

public class Main {
    private static void setAntiAlisingFont() {
        // This makes font use antialiasing.
        //System.setProperty("awt.useSystemAAFontSettings", "on");
        System.setProperty("awt.useSystemAAFontSettings", "lcd");
        System.setProperty("swing.aatext", "true");
    }/*from   ww w  .j a  v  a  2 s . c  o m*/
}

Related

  1. getCharsWidth(Font font, char[] chars, int offset, int length)
  2. getFont(AttributeSet a)
  3. increaseLabelFont(JLabel label, int offset)
  4. initGlobalFontSetting()
  5. setBorderFromFont(JComponent c)
  6. setComponentsFont(Container container, Font font)
  7. setDefaultFont(final Font font)
  8. setDefaultFont(Font font)