public class FontHeader extends java.lang.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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFacets, getIndex, setCharset, setFamily, setIndex, setPanose, setPitch, setTypeface
getGenericChildren, getGenericRecordType
public static final int REGULAR_WEIGHT
public void init(byte[] source, int offset, int length)
public void init(LittleEndianInput leis)
public java.io.InputStream bufferInit(java.io.InputStream fontStream) throws java.io.IOException
java.io.IOException
public boolean isItalic()
public int getWeight()
public boolean isBold()
public byte getCharsetByte()
public FontCharset getCharset()
getCharset
in interface FontInfo
public FontPitch getPitch()
public FontFamily getFamily()
public java.lang.String getFamilyName()
public java.lang.String getStyleName()
public java.lang.String getVersionName()
public java.lang.String getFullName()
public byte[] getPanose()
public java.lang.String getTypeface()
getTypeface
in interface FontInfo
public int getFlags()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
public 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()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.