edu.stanford.nlp.swing
Class FontDetector

java.lang.Object
  extended by 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
static int ARABIC
           
static int CHINESE
           
static int NUM_LANGUAGES
           
static String[][] unicodeRanges
           
 
Method Summary
static boolean hasFont(String fontName)
           
static void main(String[] args)
           
static List<Font> supportedFonts(int language)
          Returns which Fonts on the system can display the sample string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

unicodeRanges

public static final String[][] unicodeRanges
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)


Stanford NLP Group