public abstract class GlyfDescript extends Object implements GlyphDescription
Modifier and Type | Field and 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 and Description |
---|---|
protected |
GlyfDescript(short numberOfContours,
org.apache.fontbox.ttf.TTFDataStream bais)
Constructor.
|
Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndPtOfContours, getFlags, getPointCount, getXCoordinate, getYCoordinate, isComposite
public 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 IOException
numberOfContours
- the number of contoursbais
- the stream to be readIOException
- is thrown if something went wrongpublic void resolve()
resolve
in interface GlyphDescription
public int getContourCount()
getContourCount
in interface GlyphDescription
public int[] getInstructions()
protected void readInstructions(org.apache.fontbox.ttf.TTFDataStream bais, int count) throws IOException
bais
- the stream to be readcount
- the number of instructions to be readIOException
- is thrown if something went wrongCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.