Enum Class FontGroup
- All Implemented Interfaces:
Serializable
,Comparable<FontGroup>
,Constable
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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiontype for complex scripts - see https://msdn.microsoft.com/en-us/library/windows/desktop/dd317698type for east asian charsets - usually set as fallback for the latin font, e.g.type for latin charset (default) - also used for unicode fonts like MS Arial Unicodetype for symbol fonts -
Method Summary
Modifier and TypeMethodDescriptionstatic FontGroup
getFontGroupFirst
(String runText) static List
<FontGroup.FontGroupRange> getFontGroupRanges
(String runText) Try to guess the font group based on the codepointstatic FontGroup
Returns the enum constant of this class with the specified name.static FontGroup[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LATIN
type for latin charset (default) - also used for unicode fonts like MS Arial Unicode -
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
type for symbol fonts -
COMPLEX_SCRIPT
type for complex scripts - see https://msdn.microsoft.com/en-us/library/windows/desktop/dd317698
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getFontGroupRanges
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
-