Class FontUtil

java.lang.Object
com._1c.g5.v8.dt.ui.util.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 Details

    • IS_ARABIC_LOCALE

      public static boolean IS_ARABIC_LOCALE
  • Method Details

    • 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, String languageCode)
      Returns Font representation.
      Parameters:
      font - the font, cannot be null
      languageCode - the language code, can be null
      Returns:
      the font representation