类 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
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器限定符构造器说明privateBuilder(ReadableFontData data, ReadableFontData masterData) privateBuilder(WritableFontData data, ReadableFontData masterData) -
方法概要
修饰符和类型方法说明private IndexSubTable.Builder<? extends IndexSubTable>binarySearchIndexSubTables(int glyphId) intbitDepth()intcolorRef()(专用程序包) static BitmapSizeTable.BuildercreateBuilder(ReadableFontData data, ReadableFontData masterData) (专用程序包) static BitmapSizeTable.BuildercreateBuilder(WritableFontData data, ReadableFontData masterData) private IndexSubTable.Builder<? extends IndexSubTable>createIndexSubTableBuilder(int index) intintprivate List<IndexSubTable.Builder<? extends IndexSubTable>>intglyphFormat(int glyphId) glyphInfo(int glyphId) intglyphLength(int glyphId) intglyphOffset(int glyphId) voidhori()intGets 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>>intGets the subtable array size as set in the original table as read from the font file.private voidinitialize(ReadableFontData data) (专用程序包) Iterator<BitmapGlyphInfo>iterator()private IndexSubTable.Builder<? extends IndexSubTable>linearSearchIndexSubTables(int glyphId) intintppemX()intppemY()protected voidrevert()private IndexSubTable.Builder<? extends IndexSubTable>searchIndexSubTables(int glyphId) (专用程序包) voidsetIndexSubTableArrayOffset(int offset) Sets the subtable array offset.(专用程序包) voidsetIndexTableSize(int size) Sets the subtable size.private voidsetNumberOfIndexSubTables(int numberOfIndexSubTables) intprotected BitmapSizeTableBuild a table with the data provided.protected voidTell the subclass that the data has been changed and any structures must be discarded.protected intQuery if the subclass needs to serialize and how much data is required.protected booleanprotected intsubSerialize(WritableFontData newData) Serialize the table to the data provided.voidvert()从类继承的方法 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.BuilderBuild 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.BuilderTell the subclass that the data has been changed and any structures must be discarded.- 指定者:
subDataSet在类中FontDataTable.Builder<BitmapSizeTable>
-
subDataSizeToSerialize
protected int subDataSizeToSerialize()从类复制的说明:FontDataTable.BuilderQuery 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.BuilderSerialize the table to the data provided.- 指定者:
subSerialize在类中FontDataTable.Builder<BitmapSizeTable>- 参数:
newData- the data object to serialize to- 返回:
- the number of bytes written
-