类 IndexSubTableFormat5.Builder
java.lang.Object
com.google.typography.font.sfntly.table.FontDataTable.Builder<T>
com.google.typography.font.sfntly.table.SubTable.Builder<T>
com.google.typography.font.sfntly.table.bitmap.IndexSubTable.Builder<IndexSubTableFormat5>
com.google.typography.font.sfntly.table.bitmap.IndexSubTableFormat5.Builder
- 封闭类:
IndexSubTableFormat5
public static final class IndexSubTableFormat5.Builder
extends IndexSubTable.Builder<IndexSubTableFormat5>
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器限定符构造器说明private
Builder()
private
Builder
(ReadableFontData data, int firstGlyphIndex, int lastGlyphIndex) private
Builder
(WritableFontData data, int firstGlyphIndex, int lastGlyphIndex) -
方法概要
修饰符和类型方法说明static IndexSubTableFormat5.Builder
(专用程序包) static IndexSubTableFormat5.Builder
createBuilder
(ReadableFontData data, int indexSubTableOffset, int firstGlyphIndex, int lastGlyphIndex) (专用程序包) static IndexSubTableFormat5.Builder
createBuilder
(WritableFontData data, int indexSubTableOffset, int firstGlyphIndex, int lastGlyphIndex) private static int
dataLength
(ReadableFontData data, int indexSubTableOffset, int firstGlyphIndex, int lastGlyphIndex) int
glyphLength
(int glyphId) Gets the length of the glyph within the EBDT table.int
glyphStartOffset
(int glyphId) Gets the offset of the glyph relative to the block for this index subtable.int
private void
initialize
(ReadableFontData data) (专用程序包) Iterator<BitmapGlyphInfo>
iterator()
int
protected void
revert()
Unable to fully revert unless some changes happen to hold the original data.void
setGlyphArray
(List<Integer> array) void
setImageSize
(int imageSize) protected IndexSubTableFormat5
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.从类继承的方法 com.google.typography.font.sfntly.table.bitmap.IndexSubTable.Builder
checkGlyphRange, createBuilder, createBuilder, firstGlyphIndex, glyphInfo, glyphOffset, imageDataOffset, imageFormat, indexFormat, lastGlyphIndex, serializeIndexSubHeader, setFirstGlyphIndex, setImageDataOffset, setImageFormat, setLastGlyphIndex, toString
从类继承的方法 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
-
字段详细资料
-
glyphArray
-
metrics
-
-
构造器详细资料
-
Builder
private Builder() -
Builder
-
Builder
-
-
方法详细资料
-
createBuilder
-
createBuilder
static IndexSubTableFormat5.Builder createBuilder(ReadableFontData data, int indexSubTableOffset, int firstGlyphIndex, int lastGlyphIndex) -
createBuilder
static IndexSubTableFormat5.Builder createBuilder(WritableFontData data, int indexSubTableOffset, int firstGlyphIndex, int lastGlyphIndex) -
dataLength
private static int dataLength(ReadableFontData data, int indexSubTableOffset, int firstGlyphIndex, int lastGlyphIndex) -
imageSize
public int imageSize() -
setImageSize
public void setImageSize(int imageSize) -
bigMetrics
-
numGlyphs
public int numGlyphs() -
glyphLength
public int glyphLength(int glyphId) 从类复制的说明:IndexSubTable.Builder
Gets the length of the glyph within the EBDT table.- 指定者:
glyphLength
在类中IndexSubTable.Builder<IndexSubTableFormat5>
- 参数:
glyphId
- the glyph id- 返回:
- the glyph offset
-
glyphStartOffset
public int glyphStartOffset(int glyphId) 从类复制的说明:IndexSubTable.Builder
Gets the offset of the glyph relative to the block for this index subtable.- 指定者:
glyphStartOffset
在类中IndexSubTable.Builder<IndexSubTableFormat5>
- 参数:
glyphId
- the glyph id- 返回:
- the glyph offset
-
glyphArray
-
getGlyphArray
-
initialize
-
setGlyphArray
-
iterator
Iterator<BitmapGlyphInfo> iterator() -
revert
protected void revert()从类复制的说明:IndexSubTable.Builder
Unable to fully revert unless some changes happen to hold the original data. Until then keep as protected. -
subBuildTable
从类复制的说明:FontDataTable.Builder
Build a table with the data provided.- 覆盖:
subBuildTable
在类中IndexSubTable.Builder<IndexSubTableFormat5>
- 参数:
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. -
subDataSizeToSerialize
protected int subDataSizeToSerialize()从类复制的说明:FontDataTable.Builder
Query if the subclass needs to serialize and how much data is required.- 覆盖:
subDataSizeToSerialize
在类中IndexSubTable.Builder<IndexSubTableFormat5>
- 返回:
- 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
在类中IndexSubTable.Builder<IndexSubTableFormat5>
- 返回:
- true if the subclass is ready to serialize it's structure into data
-
subSerialize
从类复制的说明:FontDataTable.Builder
Serialize the table to the data provided.- 覆盖:
subSerialize
在类中IndexSubTable.Builder<IndexSubTableFormat5>
- 参数:
newData
- the data object to serialize to- 返回:
- the number of bytes written
-