Class FontUtil


  • public final class FontUtil
    extends Object
    Miscellaneous utilities for handling fonts for UI-related purposes.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Field Detail

      • IS_ARABIC_LOCALE

        public static boolean IS_ARABIC_LOCALE
    • Method Detail

      • getDefaultFontFace

        public static String getDefaultFontFace()
        Returns default font face name, specific for current locale.
      • getFontRepresentationOrDefault

        public static String getFontRepresentationOrDefault​(Font font)
        Returns Font representation.
        Parameters:
        font - the font, can be null
        Returns:
        the font representation, never null
      • getFontRepresentation

        public static String getFontRepresentation​(Font font)
        Returns Font representation.
        Parameters:
        font - the font, cannot be null
        Returns:
        the font representation