类 Glyph
java.lang.Object
com.google.typography.font.sfntly.table.FontDataTable
com.google.typography.font.sfntly.table.SubTable
com.google.typography.font.sfntly.table.truetype.Glyph
- 直接已知子类:
CompositeGlyph
,SimpleGlyph
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final Glyph.GlyphType
protected final Object
protected boolean
private final int
从类继承的字段 com.google.typography.font.sfntly.table.FontDataTable
data
-
构造器概要
构造器限定符构造器说明protected
Glyph
(ReadableFontData data, int offset, int length, Glyph.GlyphType glyphType) protected
Glyph
(ReadableFontData data, Glyph.GlyphType glyphType) -
方法概要
修饰符和类型方法说明(专用程序包) static Glyph
getGlyph
(GlyphTable table, ReadableFontData data, int offset, int length) private static Glyph.GlyphType
glyphType
(ReadableFontData data, int offset, int length) protected abstract void
abstract ReadableFontData
abstract int
int
Gets the number of contours in the glyph.int
padding()
Get the number of bytes of padding used in the table.toString()
toString
(int length) int
xMax()
int
xMin()
int
yMax()
int
yMin()
从类继承的方法 com.google.typography.font.sfntly.table.SubTable
masterReadData, setPadding
从类继承的方法 com.google.typography.font.sfntly.table.FontDataTable
dataLength, readFontData, serialize, serialize
-
字段详细资料
-
initialized
protected volatile boolean initialized -
initializationLock
-
glyphType
-
numberOfContours
private final int numberOfContours
-
-
构造器详细资料
-
Glyph
-
Glyph
-
-
方法详细资料
-
glyphType
-
getGlyph
-
initialize
protected abstract void initialize() -
padding
public int padding()从类复制的说明:SubTable
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. -
glyphType
-
numberOfContours
public int numberOfContours()Gets the number of contours in the glyph. If this returns a number greater than or equal to zero it is the actual number of contours and this is a simple glyph. If there are zero contours in the glyph then none of the other data operations will return usable values. If it -1 then the glyph is a composite glyph.- 返回:
- number of contours
-
xMin
public int xMin() -
xMax
public int xMax() -
yMin
public int yMin() -
yMax
public int yMax() -
instructionSize
public abstract int instructionSize() -
instructions
-
toString
- 覆盖:
toString
在类中FontDataTable
-
toString
-