Package 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), Christopher Manning
-
-
Field Summary
Fields Modifier and Type Field Description static intARABICstatic intCHINESEstatic intNUM_LANGUAGES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasFont(String fontName)static voidmain(String[] args)static List<Font>supportedFonts(int language)Returns which Fonts on the system can display the sample string.
-
-
-
Field Detail
-
NUM_LANGUAGES
public static final int NUM_LANGUAGES
- See Also:
- Constant Field Values
-
CHINESE
public static final int CHINESE
- See Also:
- Constant Field Values
-
ARABIC
public static final int ARABIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
supportedFonts
public static List<Font> 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)
-
-