Java tutorial
//package com.java2s; //License from project: Creative Commons License import java.awt.Font; public class Main { public static String getFontPrintableChars(Font font) { StringBuilder result = new StringBuilder(); for (int i = 0; i <= 255; i++) { if (font.canDisplay(i)) { result.append((char) i); } } System.out.println(result); return result.toString(); } }