Top Description Inners Fields Constructors Methods
org.apache.poi.common.usermodel.fonts

public final Enum FontGroup

extends Enum<FontGroup>
Class Inheritance
Imports
java.util.ArrayList, .List, .Map, .NavigableMap, .TreeMap

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
Office Open XML Themes, Schemes, and Fonts

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
public static final FontGroup
COMPLEX_SCRIPT

type for complex scripts - see https://msdn.microsoft.com/en-us/library/windows/desktop/dd317698

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

public static final FontGroup
LATIN

type for latin charset (default) - also used for unicode fonts like MS Arial Unicode

public static final FontGroup
SYMBOL

type for symbol fonts

private static NavigableMap<Integer, FontGroup.Range>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FontGroup
public static List<FontGroup.FontGroupRange>

Returns:

the FontGroup
getFontGroupRanges
(final String
the text which font groups are to be analyzed
runText
)

Try to guess the font group based on the codepoint

private static FontGroup
lookup(int codepoint)

public static FontGroup
public static FontGroup[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COMPLEX_SCRIPTback to summary
public static final FontGroup COMPLEX_SCRIPT

type for complex scripts - see https://msdn.microsoft.com/en-us/library/windows/desktop/dd317698

EAST_ASIANback to summary
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

LATINback to summary
public static final FontGroup LATIN

type for latin charset (default) - also used for unicode fonts like MS Arial Unicode

SYMBOLback to summary
public static final FontGroup SYMBOL

type for symbol fonts

UCS_RANGESback to summary
private static NavigableMap<Integer, FontGroup.Range> UCS_RANGES

Constructor Detail

FontGroupback to summary
private FontGroup()

Method Detail

getFontGroupFirstback to summary
public static FontGroup getFontGroupFirst(String runText)
getFontGroupRangesback to summary
public static List<FontGroup.FontGroupRange> getFontGroupRanges(final String runText)

Try to guess the font group based on the codepoint

Parameters
runText:String

the text which font groups are to be analyzed

Returns:List<FontGroup.FontGroupRange>

the FontGroup

lookupback to summary
private static FontGroup lookup(int codepoint)
valueOfback to summary
public static FontGroup valueOf(String name)
valuesback to summary
public static FontGroup[] values()
org.apache.poi.common.usermodel.fonts back to summary

public Class FontGroup.FontGroupRange

extends Object
Class Inheritance
  • java.lang.Object
  • org.apache.poi.common.usermodel.fonts.FontGroup.FontGroupRange

Field Summary

Modifier and TypeField and Description
private final FontGroup
private int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public FontGroup
public int
pack-priv void
increaseLength(int len)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fontGroupback to summary
private final FontGroup fontGroup
lenback to summary
private int len

Constructor Detail

FontGroupRangeback to summary
pack-priv FontGroupRange(FontGroup fontGroup)

Method Detail

getFontGroupback to summary
public FontGroup getFontGroup()
getLengthback to summary
public int getLength()
increaseLengthback to summary
pack-priv void increaseLength(int len)
org.apache.poi.common.usermodel.fonts back to summary

private Class FontGroup.Range

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final FontGroup
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
Range(int upper, FontGroup fontGroup)

Method Summary

Modifier and TypeMethod and Description
pack-priv FontGroup
pack-priv int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fontGroupback to summary
private final FontGroup fontGroup
upperback to summary
private final int upper

Constructor Detail

Rangeback to summary
pack-priv Range(int upper, FontGroup fontGroup)

Method Detail

getFontGroupback to summary
pack-priv FontGroup getFontGroup()
getUpperback to summary
pack-priv int getUpper()