public class FontEmbeddedData extends RecordAtom implements FontFacet
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFontData() |
FontHeader |
getFontHeader() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
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) |
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, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public long getRecordType()
Record
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
Record
public void setFontData(byte[] fontData)
public FontHeader getFontHeader()
public int getWeight()
FontFacet
The 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 FontFacet
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.