类 BitmapSizeTable.Builder
java.lang.Object
com.google.typography.font.sfntly.table.FontDataTable.Builder<T>
com.google.typography.font.sfntly.table.SubTable.Builder<BitmapSizeTable>
com.google.typography.font.sfntly.table.bitmap.BitmapSizeTable.Builder
- 封闭类:
BitmapSizeTable
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器限定符构造器说明private
Builder
(ReadableFontData data, ReadableFontData masterData) private
Builder
(WritableFontData data, ReadableFontData masterData) -
方法概要
修饰符和类型方法说明private IndexSubTable.Builder<? extends IndexSubTable>
binarySearchIndexSubTables
(int glyphId) int
bitDepth()
int
colorRef()
(专用程序包) static BitmapSizeTable.Builder
createBuilder
(ReadableFontData data, ReadableFontData masterData) (专用程序包) static BitmapSizeTable.Builder
createBuilder
(WritableFontData data, ReadableFontData masterData) private IndexSubTable.Builder<? extends IndexSubTable>
createIndexSubTableBuilder
(int index) int
int
private List<IndexSubTable.Builder<? extends IndexSubTable>>
int
glyphFormat
(int glyphId) glyphInfo
(int glyphId) int
glyphLength
(int glyphId) int
glyphOffset
(int glyphId) void
hori()
int
Gets the subtable array offset as set in the original table as read from the font file.IndexSubTable.Builder<? extends IndexSubTable>
indexSubTableBuilder
(int index) List<IndexSubTable.Builder<? extends IndexSubTable>>
int
Gets the subtable array size as set in the original table as read from the font file.private void
initialize
(ReadableFontData data) (专用程序包) Iterator<BitmapGlyphInfo>
iterator()
private IndexSubTable.Builder<? extends IndexSubTable>
linearSearchIndexSubTables
(int glyphId) int
int
ppemX()
int
ppemY()
protected void
revert()
private IndexSubTable.Builder<? extends IndexSubTable>
searchIndexSubTables
(int glyphId) (专用程序包) void
setIndexSubTableArrayOffset
(int offset) Sets the subtable array offset.(专用程序包) void
setIndexTableSize
(int size) Sets the subtable size.private void
setNumberOfIndexSubTables
(int numberOfIndexSubTables) int
protected BitmapSizeTable
Build a table with the data provided.protected void
Tell the subclass that the data has been changed and any structures must be discarded.protected int
Query if the subclass needs to serialize and how much data is required.protected boolean
protected int
subSerialize
(WritableFontData newData) Serialize the table to the data provided.void
vert()
从类继承的方法 com.google.typography.font.sfntly.table.SubTable.Builder
masterReadData
从类继承的方法 com.google.typography.font.sfntly.table.FontDataTable.Builder
build, changed, containedModelChanged, currentModelChanged, data, dataChanged, internalReadData, internalWriteData, modelChanged, notifyPostTableBuild, readyToBuild, setData, setData, setModelChanged, setModelChanged
-
字段详细资料
-
indexSubTables
List<IndexSubTable.Builder<? extends IndexSubTable>> indexSubTables
-
-
构造器详细资料
-
Builder
-
Builder
-
-
方法详细资料
-
createBuilder
-
createBuilder
-
indexSubTableArrayOffset
public int indexSubTableArrayOffset()Gets the subtable array offset as set in the original table as read from the font file. This value cannot be explicitly set and will be generated during table building.- 返回:
- the subtable array offset
-
setIndexSubTableArrayOffset
void setIndexSubTableArrayOffset(int offset) Sets the subtable array offset. This is used only during the building process when the objects are being serialized.- 参数:
offset
- the offset to the index subtable array
-
indexTableSize
public int indexTableSize()Gets the subtable array size as set in the original table as read from the font file. This value cannot be explicitly set and will be generated during table building.- 返回:
- the subtable array size
-
setIndexTableSize
void setIndexTableSize(int size) Sets the subtable size. This is used only during the building process when the objects are being serialized.- 参数:
size
- the offset to the index subtable array
-
numberOfIndexSubTables
public int numberOfIndexSubTables() -
setNumberOfIndexSubTables
private void setNumberOfIndexSubTables(int numberOfIndexSubTables) -
colorRef
public int colorRef() -
hori
public void hori() -
vert
public void vert() -
startGlyphIndex
public int startGlyphIndex() -
endGlyphIndex
public int endGlyphIndex() -
ppemX
public int ppemX() -
ppemY
public int ppemY() -
bitDepth
public int bitDepth() -
flagsAsInt
public int flagsAsInt() -
indexSubTableBuilder
-
glyphInfo
-
glyphOffset
public int glyphOffset(int glyphId) -
glyphLength
public int glyphLength(int glyphId) -
glyphFormat
public int glyphFormat(int glyphId) -
indexSubTableBuilders
-
iterator
Iterator<BitmapGlyphInfo> iterator() -
revert
protected void revert() -
generateLocaMap
-
searchIndexSubTables
-
linearSearchIndexSubTables
-
binarySearchIndexSubTables
-
getIndexSubTableBuilders
-
initialize
-
createIndexSubTableBuilder
-
subBuildTable
从类复制的说明:FontDataTable.Builder
Build a table with the data provided.- 指定者:
subBuildTable
在类中FontDataTable.Builder<BitmapSizeTable>
- 参数:
data
- the data to use to build the table- 返回:
- a table
-
subDataSet
protected void subDataSet()从类复制的说明:FontDataTable.Builder
Tell the subclass that the data has been changed and any structures must be discarded.- 指定者:
subDataSet
在类中FontDataTable.Builder<BitmapSizeTable>
-
subDataSizeToSerialize
protected int subDataSizeToSerialize()从类复制的说明:FontDataTable.Builder
Query if the subclass needs to serialize and how much data is required.- 指定者:
subDataSizeToSerialize
在类中FontDataTable.Builder<BitmapSizeTable>
- 返回:
- positive bytes needed to serialize if a fixed size; and zero or negative bytes as an estimate if growable data is needed
-
subReadyToSerialize
protected boolean subReadyToSerialize()- 指定者:
subReadyToSerialize
在类中FontDataTable.Builder<BitmapSizeTable>
- 返回:
- true if the subclass is ready to serialize it's structure into data
-
subSerialize
从类复制的说明:FontDataTable.Builder
Serialize the table to the data provided.- 指定者:
subSerialize
在类中FontDataTable.Builder<BitmapSizeTable>
- 参数:
newData
- the data object to serialize to- 返回:
- the number of bytes written
-