Class FontHeader
java.lang.Object
org.apache.poi.common.usermodel.fonts.FontHeader
- All Implemented Interfaces:
FontInfo
,GenericRecord
The header data of an EOT font.
Currently only version 1 fields are read to identify a stream to be embedded.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Fonts with a font weight of 400 are regarded as regular weighted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbufferInit
(InputStream fontStream) byte
int
getFlags()
byte[]
getPitch()
int
void
init
(byte[] source, int offset, int length) void
init
(LittleEndianInput leis) boolean
isBold()
boolean
isItalic()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.poi.common.usermodel.fonts.FontInfo
getFacets, getIndex, setCharset, setFamily, setIndex, setPanose, setPitch, setTypeface
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Field Details
-
REGULAR_WEIGHT
public static final int REGULAR_WEIGHTFonts with a font weight of 400 are regarded as regular weighted. Higher font weights (up to 1000) are bold - lower weights are thin.- See Also:
-
-
Constructor Details
-
FontHeader
public FontHeader()
-
-
Method Details
-
init
public void init(byte[] source, int offset, int length) -
init
-
bufferInit
- Throws:
IOException
-
isItalic
public boolean isItalic() -
getWeight
public int getWeight() -
isBold
public boolean isBold() -
getCharsetByte
public byte getCharsetByte() -
getCharset
- Specified by:
getCharset
in interfaceFontInfo
- Returns:
- the font charset
-
getPitch
-
getFamily
-
getFamilyName
-
getStyleName
-
getVersionName
-
getFullName
-
getPanose
public byte[] getPanose() -
getTypeface
- Specified by:
getTypeface
in interfaceFontInfo
- Returns:
- the full name of the font, i.e. font family + type face
-
getFlags
public int getFlags() -
getGenericProperties
- Specified by:
getGenericProperties
in interfaceGenericRecord
-
getPanoseFamily
-
getPanoseSerif
-
getPanoseWeight
-
getPanoseProportion
-
getPanoseContrast
-
getPanoseStroke
-
getPanoseArmStyle
-
getPanoseLetterForm
-
getPanoseMidLine
-
getPanoseXHeight
-