Enum Class FontGroup

java.lang.Object
java.lang.Enum<FontGroup>
org.apache.poi.common.usermodel.fonts.FontGroup
All Implemented Interfaces:
Serializable, Comparable<FontGroup>, Constable

public enum FontGroup extends Enum<FontGroup>
Text runs can contain characters which will be handled (if configured) by a different font, because the default font (latin) doesn't contain corresponding glyphs.
Since:
POI 3.17-beta2
See Also:
  • Enum Constant Details

    • LATIN

      public static final FontGroup LATIN
      type for latin charset (default) - also used for unicode fonts like MS Arial Unicode
    • EAST_ASIAN

      public static final FontGroup EAST_ASIAN
      type for east asian charsets - usually set as fallback for the latin font, e.g. something like MS Gothic or MS Mincho
    • SYMBOL

      public static final FontGroup SYMBOL
      type for symbol fonts
    • COMPLEX_SCRIPT

      public static final FontGroup COMPLEX_SCRIPT
      type for complex scripts - see https://msdn.microsoft.com/en-us/library/windows/desktop/dd317698
  • Method Details

    • values

      public static FontGroup[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FontGroup valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFontGroupRanges

      public static List<FontGroup.FontGroupRange> getFontGroupRanges(String runText)
      Try to guess the font group based on the codepoint
      Parameters:
      runText - the text which font groups are to be analyzed
      Returns:
      the FontGroup
    • getFontGroupFirst

      public static FontGroup getFontGroupFirst(String runText)