类 SubTable
java.lang.Object
com.google.typography.font.sfntly.table.FontDataTable
com.google.typography.font.sfntly.table.SubTable
- 直接已知子类:
BitmapGlyph
,BitmapSizeTable
,ChainSubGenericRule
,CMap
,DoubleRecordTable
,EbscTable.BitmapScaleTable
,Glyph
,GlyphMetrics
,HeaderTable
,IndexSubTable
,InnerArraysFmt3
,LayoutCommonTable
,LookupList
,OTSubTable
,VisibleSubTable
An abstract base class for subtables. Subtables are smaller tables nested
within other tables and don't have an entry in the main font index. Examples
of these are the CMap subtables within CMap table (cmap) or a glyph within
the glyph table (glyf).
- 作者:
- Stuart Gill
-
嵌套类概要
嵌套类修饰符和类型类说明protected static class
SubTable.Builder<T extends SubTable>
An abstract base class for subtable builders. -
字段概要
字段修饰符和类型字段说明private final ReadableFontData
The data for the whole table in which this subtable is contained.private int
从类继承的字段 com.google.typography.font.sfntly.table.FontDataTable
data
-
构造器概要
构造器限定符构造器说明protected
SubTable
(ReadableFontData data) Constructor.protected
SubTable
(ReadableFontData data, int offset, int length) Constructor.protected
SubTable
(ReadableFontData data, ReadableFontData masterData) Constructor. -
方法概要
修饰符和类型方法说明protected ReadableFontData
int
padding()
Get the number of bytes of padding used in the table.protected void
setPadding
(int padding) Sets the amount of padding that is part of the data being used by this subtable.从类继承的方法 com.google.typography.font.sfntly.table.FontDataTable
dataLength, readFontData, serialize, serialize, toString
-
字段详细资料
-
masterData
The data for the whole table in which this subtable is contained. -
padding
private int padding
-
-
构造器详细资料
-
SubTable
Constructor.- 参数:
data
- the data representing the subtablemasterData
- the data representing the full table containing this subtable
-
SubTable
Constructor.- 参数:
data
- the data representing the subtable
-
SubTable
Constructor.- 参数:
data
- the data object that contains the subtableoffset
- the offset within the data where the subtable startslength
- the length of the subtable data within the data object
-
-
方法详细资料
-
masterReadData
-
padding
public int padding()Get the number of bytes of padding used in the table. The padding bytes are used to align the table length to a 4 byte boundary.- 返回:
- the number of padding bytes
-
setPadding
protected void setPadding(int padding) Sets the amount of padding that is part of the data being used by this subtable.- 参数:
padding
-
-