|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fontbox.ttf.GlyfDescript
public abstract class GlyfDescript
This class is based on code from Apache Batik a subproject of Apache XMLGraphics. see http://xmlgraphics.apache.org/batik/ for further details.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
GlyfDescript(short numberOfContours,
TTFDataStream bais)
Constructor. |
| Method Summary | |
|---|---|
int |
getContourCount()
Returns the number of contours. |
int[] |
getInstructions()
Returns the hinting instructions. |
protected void |
readInstructions(TTFDataStream bais,
int count)
Read the hinting instructions. |
void |
resolve()
Resolve all parts of an composite glyph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.fontbox.ttf.GlyphDescription |
|---|
getEndPtOfContours, getFlags, getPointCount, getXCoordinate, getYCoordinate, isComposite |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
protected GlyfDescript(short numberOfContours,
TTFDataStream bais)
throws IOException
numberOfContours - the number of contoursbais - the stream to be read
IOException - is thrown if something went wrong| Method Detail |
|---|
public void resolve()
resolve in interface GlyphDescriptionpublic int getContourCount()
getContourCount in interface GlyphDescriptionpublic int[] getInstructions()
protected void readInstructions(TTFDataStream bais,
int count)
throws IOException
bais - the stream to be readcount - the number of instructions to be read
IOException - is thrown if something went wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||