Class FontFallbackManager


  • public final class FontFallbackManager
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canDisplay​(java.awt.Font font, int codePoint)
      Check a character displayable with font.
      static int canDisplayUpTo​(java.awt.Font font, char[] text, int start, int limit)  
      static int canDisplayUpTo​(java.awt.Font font, java.lang.String str)
      Detect specified codePoints can display with specified font.
      static int canDisplayUpTo​(java.awt.Font font, java.text.CharacterIterator iter, int start, int limit)  
      static java.awt.Font getCapableFont​(int cp)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • canDisplayUpTo

        public static int canDisplayUpTo​(java.awt.Font font,
                                         java.lang.String str)
        Detect specified codePoints can display with specified font. Wrapper of Font class methods.
      • canDisplayUpTo

        public static int canDisplayUpTo​(java.awt.Font font,
                                         char[] text,
                                         int start,
                                         int limit)
      • canDisplayUpTo

        public static int canDisplayUpTo​(java.awt.Font font,
                                         java.text.CharacterIterator iter,
                                         int start,
                                         int limit)
      • canDisplay

        public static boolean canDisplay​(java.awt.Font font,
                                         int codePoint)
        Check a character displayable with font.
        Parameters:
        font - target font
        codePoint - character to check
        Returns:
        true when codePoint can be displayed, otherwise false.
      • getCapableFont

        public static java.awt.Font getCapableFont​(int cp)