GlyphDescriptionGlyfCompositeDescript, GlyfSimpleDescriptpublic abstract class GlyfDescript extends java.lang.Object implements GlyphDescription
| Modifier and Type | Field | Description |
|---|---|---|
static byte |
ON_CURVE |
if set, the point is on the curve.
|
static byte |
REPEAT |
if set, the next byte specifies the number of additional
times this set of flags is to be repeated.
|
static byte |
X_DUAL |
This flag as two meanings, depending on how the
x-short vector flags is set.
|
static byte |
X_SHORT_VECTOR |
if set, the x-coordinate is 1 byte long.
|
static byte |
Y_DUAL |
This flag as two meanings, depending on how the
y-short vector flags is set.
|
static byte |
Y_SHORT_VECTOR |
if set, the y-coordinate is 1 byte long.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
GlyfDescript(short numberOfContours,
org.apache.fontbox.ttf.TTFDataStream bais) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getContourCount() |
Returns the number of contours.
|
int[] |
getInstructions() |
Returns the hinting instructions.
|
protected void |
readInstructions(org.apache.fontbox.ttf.TTFDataStream bais,
int count) |
Read the hinting instructions.
|
void |
resolve() |
Resolve all parts of an composite glyph.
|
getEndPtOfContours, getFlags, getPointCount, getXCoordinate, getYCoordinate, isCompositepublic static final byte ON_CURVE
public static final byte X_SHORT_VECTOR
public static final byte Y_SHORT_VECTOR
public static final byte REPEAT
public static final byte X_DUAL
public static final byte Y_DUAL
protected GlyfDescript(short numberOfContours,
org.apache.fontbox.ttf.TTFDataStream bais)
throws java.io.IOException
numberOfContours - the number of contoursbais - the stream to be readjava.io.IOException - is thrown if something went wrongpublic void resolve()
resolve in interface GlyphDescriptionpublic int getContourCount()
getContourCount in interface GlyphDescriptionpublic int[] getInstructions()
protected void readInstructions(org.apache.fontbox.ttf.TTFDataStream bais,
int count)
throws java.io.IOException
bais - the stream to be readcount - the number of instructions to be readjava.io.IOException - is thrown if something went wrongCopyright © 2008–2018. All rights reserved.