类 BigGlyphMetrics.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.GlyphMetrics.Builder<BigGlyphMetrics>
com.google.typography.font.sfntly.table.bitmap.BigGlyphMetrics.Builder
- 封闭类:
BigGlyphMetrics
-
构造器概要
构造器限定符构造器说明protected
Builder
(ReadableFontData data) Constructor.protected
Builder
(WritableFontData data) Constructor. -
方法概要
修饰符和类型方法说明static BigGlyphMetrics.Builder
int
height()
int
int
int
void
setHeight
(byte height) void
setHoriAdvance
(byte advance) void
setHoriBearingX
(byte bearing) void
setHoriBearingY
(byte bearing) void
setVertAdvance
(byte advance) void
setVertBearingX
(byte bearing) void
setVertBearingY
(byte bearing) void
setWidth
(byte width) protected BigGlyphMetrics
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.int
int
int
int
width()
从类继承的方法 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
-
构造器详细资料
-
Builder
Constructor.- 参数:
data
-
-
Builder
Constructor.- 参数:
data
-
-
-
方法详细资料
-
createBuilder
-
height
public int height() -
setHeight
public void setHeight(byte height) -
width
public int width() -
setWidth
public void setWidth(byte width) -
horiBearingX
public int horiBearingX() -
setHoriBearingX
public void setHoriBearingX(byte bearing) -
horiBearingY
public int horiBearingY() -
setHoriBearingY
public void setHoriBearingY(byte bearing) -
horiAdvance
public int horiAdvance() -
setHoriAdvance
public void setHoriAdvance(byte advance) -
vertBearingX
public int vertBearingX() -
setVertBearingX
public void setVertBearingX(byte bearing) -
vertBearingY
public int vertBearingY() -
setVertBearingY
public void setVertBearingY(byte bearing) -
vertAdvance
public int vertAdvance() -
setVertAdvance
public void setVertAdvance(byte advance) -
subBuildTable
从类复制的说明:FontDataTable.Builder
Build a table with the data provided.- 指定者:
subBuildTable
在类中FontDataTable.Builder<BigGlyphMetrics>
- 参数:
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<BigGlyphMetrics>
-
subDataSizeToSerialize
protected int subDataSizeToSerialize()从类复制的说明:FontDataTable.Builder
Query if the subclass needs to serialize and how much data is required.- 指定者:
subDataSizeToSerialize
在类中FontDataTable.Builder<BigGlyphMetrics>
- 返回:
- 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<BigGlyphMetrics>
- 返回:
- 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<BigGlyphMetrics>
- 参数:
newData
- the data object to serialize to- 返回:
- the number of bytes written
-