Java Font from System getAllAvailableFonts()

Here you can find the source of getAllAvailableFonts()

Description

get All Available Fonts

License

Open Source License

Declaration

public static List getAllAvailableFonts() 

Method Source Code


//package com.java2s;

import java.awt.GraphicsEnvironment;

import java.util.Arrays;
import java.util.List;

public class Main {
    public static List getAllAvailableFonts() {
        return Arrays.asList(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());
    }/*w w  w. j av a  2s . co  m*/
}

Related

  1. availableFonts()
  2. getAllAvaiableSystemMonoSpacedFonts()
  3. getAllFontNames()
  4. getDefaultBorderInsets(int fontSize)
  5. getDefaultFont()
  6. getDefaultFont()