public final class FontEntityAtom extends RecordAtom
Constructor and Description |
---|
FontEntityAtom()
Create a new instance of
FontEntityAtom
|
Modifier and Type | Method and Description |
---|---|
int |
getCharSet()
get the character set
(获取字符集)
|
int |
getFontFlags()
get the character set Bit 1: If set, font is subsetted
(获取字符集 Bit 1:如果设置,字体被子集化)
|
int |
getFontIndex() |
java.lang.String |
getFontName()
A null-terminated string that specifies the typeface name of the font.
(一个以空字符结尾的字符串,它指定字体的字体名称。)
|
int |
getFontType()
get the font type
(获取字体类型)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getPitchAndFamily()
get lfPitchAndFamily
(获取 lfPitchAndFamily)
|
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4) that this class handles
(返回此类处理的类型(在字节 3 和 4 中保持为小端序))
|
void |
setCharSet(int charset)
set the character set
(设置字符集)
|
void |
setFontFlags(int flags)
set the font flags Bit 1: If set, font is subsetted
(设置字体标志位 1:如果设置,字体是子集)
|
void |
setFontIndex(int idx) |
void |
setFontName(java.lang.String name)
Set the name of the font.
(设置字体的名称。)
|
void |
setFontType(int type)
set the font type
(设置字体类型)
|
void |
setPitchAndFamily(int val)
set lfPitchAndFamily
(设置 lfPitchAndFamily)
|
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
(将记录的内容写回去,这样就可以写入磁盘了)
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public FontEntityAtom()
FontEntityAtom
(创建一个新的 FontEntityAtom 实例)
public long getRecordType()
Record
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public java.lang.String getFontName()
public void setFontName(java.lang.String name)
name
- of the font
(名称 - 字体)
public void setFontIndex(int idx)
public int getFontIndex()
public void setCharSet(int charset)
charset
- - characterset
(字符集 - - 字符集)
public int getCharSet()
public void setFontFlags(int flags)
flags
- - the font flags
(flags - - 字体标志)
public int getFontFlags()
public void setFontType(int type)
Bit 1: Raster Font Bit 2: Device Font Bit 3: TrueType Font
(设置字体类型 Bit 1:光栅字体 Bit 2:设备字体 Bit 3:TrueType 字体)type
- - the font type
(type - - 字体类型)
public int getFontType()
Bit 1: Raster Font Bit 2: Device Font Bit 3: TrueType Font
(获取字体类型 Bit 1:光栅字体 Bit 2:设备字体 Bit 3:TrueType 字体)public void setPitchAndFamily(int val)
val
- - Corresponds to the lfPitchAndFamily field of the Win32 API LOGFONT structure
(val - - 对应 Win32 API LOGFONT 结构的 lfPitchAndFamily 字段)
public int getPitchAndFamily()
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.