public class FontHeader extends Object implements FontInfo, GenericRecord
Currently only version 1 fields are read to identify a stream to be embedded.
| Modifier and Type | Class and Description |
|---|---|
static class |
FontHeader.PanoseArmStyle |
static class |
FontHeader.PanoseContrast |
static class |
FontHeader.PanoseFamily |
static class |
FontHeader.PanoseLetterForm |
static class |
FontHeader.PanoseMidLine |
static class |
FontHeader.PanoseProportion |
static class |
FontHeader.PanoseSerif |
static class |
FontHeader.PanoseStroke |
static class |
FontHeader.PanoseWeight |
static class |
FontHeader.PanoseXHeight |
| Modifier and Type | Field and Description |
|---|---|
static int |
REGULAR_WEIGHT
Fonts with a font weight of 400 are regarded as regular weighted.
|
| Constructor and Description |
|---|
FontHeader() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
bufferInit(InputStream fontStream) |
FontCharset |
getCharset() |
byte |
getCharsetByte() |
FontFamily |
getFamily() |
String |
getFamilyName() |
int |
getFlags() |
String |
getFullName() |
Map<String,Supplier<?>> |
getGenericProperties() |
byte[] |
getPanose() |
FontHeader.PanoseArmStyle |
getPanoseArmStyle() |
FontHeader.PanoseContrast |
getPanoseContrast() |
FontHeader.PanoseFamily |
getPanoseFamily() |
FontHeader.PanoseLetterForm |
getPanoseLetterForm() |
FontHeader.PanoseMidLine |
getPanoseMidLine() |
FontHeader.PanoseProportion |
getPanoseProportion() |
FontHeader.PanoseSerif |
getPanoseSerif() |
FontHeader.PanoseStroke |
getPanoseStroke() |
FontHeader.PanoseWeight |
getPanoseWeight() |
FontHeader.PanoseXHeight |
getPanoseXHeight() |
FontPitch |
getPitch() |
String |
getStyleName() |
String |
getTypeface() |
String |
getVersionName() |
int |
getWeight() |
void |
init(byte[] source,
int offset,
int length) |
void |
init(LittleEndianInput leis) |
boolean |
isBold() |
boolean |
isItalic() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFacets, getIndex, setCharset, setFamily, setIndex, setPanose, setPitch, setTypefacegetGenericChildren, getGenericRecordTypepublic static final int REGULAR_WEIGHT
public void init(byte[] source,
int offset,
int length)
public void init(LittleEndianInput leis)
public InputStream bufferInit(InputStream fontStream) throws IOException
IOExceptionpublic boolean isItalic()
public int getWeight()
public boolean isBold()
public byte getCharsetByte()
public FontCharset getCharset()
getCharset in interface FontInfopublic FontPitch getPitch()
public FontFamily getFamily()
public String getFamilyName()
public String getStyleName()
public String getVersionName()
public String getFullName()
public byte[] getPanose()
public String getTypeface()
getTypeface in interface FontInfopublic int getFlags()
public Map<String,Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordpublic FontHeader.PanoseFamily getPanoseFamily()
public FontHeader.PanoseSerif getPanoseSerif()
public FontHeader.PanoseWeight getPanoseWeight()
public FontHeader.PanoseProportion getPanoseProportion()
public FontHeader.PanoseContrast getPanoseContrast()
public FontHeader.PanoseStroke getPanoseStroke()
public FontHeader.PanoseArmStyle getPanoseArmStyle()
public FontHeader.PanoseLetterForm getPanoseLetterForm()
public FontHeader.PanoseMidLine getPanoseMidLine()
public FontHeader.PanoseXHeight getPanoseXHeight()