public class FontEmbeddedData extends RecordAtom implements FontFacet
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFontData() |
FontHeader |
getFontHeader()
Read the font data.
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
static int |
getMaxRecordLength() |
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4)
that this class handles
|
java.lang.String |
getTypeface() |
int |
getWeight()
Get the font weight.
|
boolean |
isItalic() |
void |
setFontData(byte[] fontData)
Overwrite the font data.
|
static void |
setMaxRecordLength(int length) |
void |
writeOut(java.io.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(java.io.OutputStream out)
throws java.io.IOException
Recordpublic void setFontData(byte[] fontData)
fontData - new font datapublic FontHeader getFontHeader()
setFontData(byte[])
is not thread safe.public int getWeight()
FontFacetThe weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.
public boolean isItalic()
public java.lang.String getTypeface()
public java.lang.Object getFontData()
getFontData in interface FontFacetpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordCopyright 2022 The Apache Software Foundation or its licensors, as applicable.