类 SmallGlyphMetrics.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<SmallGlyphMetrics>
com.google.typography.font.sfntly.table.bitmap.SmallGlyphMetrics.Builder
- 封闭类:
SmallGlyphMetrics
-
构造器概要
构造器限定符构造器说明protected
Builder
(ReadableFontData data) Constructor.protected
Builder
(WritableFontData data) Constructor. -
方法概要
修饰符和类型方法说明int
advance()
int
bearingX()
int
bearingY()
int
height()
void
setAdvance
(byte advance) void
setBearingX
(byte bearing) void
setBearingY
(byte bearing) void
setHeight
(byte height) void
setWidth
(byte width) protected SmallGlyphMetrics
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
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
- the data for the builder
-
Builder
Constructor.- 参数:
data
- the data for the builder
-
-
方法详细资料
-
height
public int height() -
setHeight
public void setHeight(byte height) -
width
public int width() -
setWidth
public void setWidth(byte width) -
bearingX
public int bearingX() -
setBearingX
public void setBearingX(byte bearing) -
bearingY
public int bearingY() -
setBearingY
public void setBearingY(byte bearing) -
advance
public int advance() -
setAdvance
public void setAdvance(byte advance) -
subBuildTable
从类复制的说明:FontDataTable.Builder
Build a table with the data provided.- 指定者:
subBuildTable
在类中FontDataTable.Builder<SmallGlyphMetrics>
- 参数:
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<SmallGlyphMetrics>
-
subDataSizeToSerialize
protected int subDataSizeToSerialize()从类复制的说明:FontDataTable.Builder
Query if the subclass needs to serialize and how much data is required.- 指定者:
subDataSizeToSerialize
在类中FontDataTable.Builder<SmallGlyphMetrics>
- 返回:
- 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<SmallGlyphMetrics>
- 返回:
- 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<SmallGlyphMetrics>
- 参数:
newData
- the data object to serialize to- 返回:
- the number of bytes written
-