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 enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFonts with a font weight of 400 are regarded as regular weighted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbufferInit(InputStream fontStream) byteintgetFlags()byte[]getPitch()intvoidinit(byte[] source, int offset, int length) voidinit(LittleEndianInput leis) booleanisBold()booleanisItalic()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.fonts.FontInfo
getFacets, getIndex, setCharset, setFamily, setIndex, setPanose, setPitch, setTypefaceMethods 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:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
getPitch
-
getFamily
-
getFamilyName
-
getStyleName
-
getVersionName
-
getFullName
-
getPanose
public byte[] getPanose() -
getTypeface
- Specified by:
getTypefacein interfaceFontInfo- Returns:
- the full name of the font, i.e. font family + type face
-
getFlags
public int getFlags() -
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
getPanoseFamily
-
getPanoseSerif
-
getPanoseWeight
-
getPanoseProportion
-
getPanoseContrast
-
getPanoseStroke
-
getPanoseArmStyle
-
getPanoseLetterForm
-
getPanoseMidLine
-
getPanoseXHeight
-