Class 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
    • 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)