public class FontDetector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ARABIC |
static int |
CHINESE |
static int |
NUM_LANGUAGES |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasFont(java.lang.String fontName) |
static void |
main(java.lang.String[] args) |
static java.util.List<java.awt.Font> |
supportedFonts(int language)
Returns which Fonts on the system can display the sample string.
|
public static final int NUM_LANGUAGES
public static final int CHINESE
public static final int ARABIC
public static java.util.List<java.awt.Font> supportedFonts(int language)
language
- the numerical code for the language to checkpublic static boolean hasFont(java.lang.String fontName)
public static void main(java.lang.String[] args)