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
(返回此类处理的类型(在字节 3 和 4 中保持为小端序))
|
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)
(将内容打印机输出到 OutputStream 中,在将文件写回磁盘时使用(通常,原子类将保留它们的字节,但非原子类只会从它们的子类请求字节,然后夹在它们的标题上并返回))
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public long getRecordType()
Record
getRecordType
in class
Record
(类 Record 中的 getRecordType)
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.
(获取字体粗细。字体的粗细范围为 0 到 1000。例如,400 是正常的,700 是粗体。如果此值为零,则使用默认权重。)public boolean isItalic()
public java.lang.String getTypeface()
public java.lang.Object getFontData()
getFontData
in interface
FontFacet
(接口 FontFacet 中的 getFontData)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.