edu.stanford.nlp.swing
Class FontDetector
java.lang.Object
edu.stanford.nlp.swing.FontDetector
public class FontDetector
- extends Object
Detects which Fonts can be used to display unicode characters in a given language.
- Author:
- Huy Nguyen (htnguyen@cs.stanford.edu)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_LANGUAGES
public static final int NUM_LANGUAGES
- See Also:
- Constant Field Values
CHINESE
public static final int CHINESE
- See Also:
- Constant Field Values
unicodeRanges
public static final String[][] unicodeRanges
FontDetector
public FontDetector()
supportedFonts
public static List supportedFonts(int language)
- Returns which Fonts on the system can display the sample string.
- Parameters:
language
- the numerical code for the language to check
- Returns:
- a list of Fonts which can display the sample String
hasFont
public static boolean hasFont(String fontName)
main
public static void main(String[] args)
Stanford NLP Group