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)

Field Summary
static int CHINESE
           
static int NUM_LANGUAGES
           
static String[][] unicodeRanges
           
 
Constructor Summary
FontDetector()
           
 
Method Summary
static boolean hasFont(String fontName)
           
static void main(String[] args)
           
static List 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

unicodeRanges

public static final String[][] unicodeRanges
Constructor Detail

FontDetector

public FontDetector()
Method Detail

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