Java Font from System availableFonts()

Here you can find the source of availableFonts()

Description

available Fonts

License

Apache License

Declaration

public static Font[] availableFonts() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.Font;
import java.awt.GraphicsEnvironment;

public class Main {

    public static Font[] availableFonts() {
        GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
        return environment.getAllFonts();
    }/*from   ww w.j  a  v a2 s  .  co  m*/
}

Related

  1. getAllAvaiableSystemMonoSpacedFonts()
  2. getAllAvailableFonts()
  3. getAllFontNames()
  4. getDefaultBorderInsets(int fontSize)