public class FontEmbeddedData extends RecordAtom implements FontFacet
| Modifier and Type | Method and Description |
|---|---|
Object |
getFontData() |
FontHeader |
getFontHeader()
Read the font data.
|
Map<String,Supplier<?>> |
getGenericProperties() |
static int |
getMaxRecordLength() |
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4)
that this class handles
|
String |
getTypeface() |
int |
getWeight() |
boolean |
isItalic() |
void |
setFontData(byte[] fontData)
Overwrite the font data.
|
static void |
setMaxRecordLength(int length) |
void |
writeOut(OutputStream out)
Have the contents printer out into an OutputStream, used when
writing a file back out to disk
(Normally, atom classes will keep their bytes around, but
non atom classes will just request the bytes from their
children, then chuck on their header and return)
|
getChildRecords, isAnAtombuildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndianpublic static void setMaxRecordLength(int length)
length - the max record length allowed for FontEmbeddedDatapublic static int getMaxRecordLength()
public long getRecordType()
RecordgetRecordType in class Recordpublic void writeOut(OutputStream out) throws IOException
RecordwriteOut in class RecordIOExceptionpublic void setFontData(byte[] fontData)
fontData - new font datapublic FontHeader getFontHeader()
setFontData(byte[])
is not thread safe.public String getTypeface()
public Object getFontData()
getFontData in interface FontFacetpublic Map<String,Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecord