|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fontbox.ttf.GlyfDescript
org.apache.fontbox.ttf.GlyfCompositeDescript
public class GlyfCompositeDescript
Glyph description for composite glyphs. Composite glyphs are made up of one or more simple glyphs, usually with some sort of transformation applied to each. 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 |
---|
Fields inherited from class org.apache.fontbox.ttf.GlyfDescript |
---|
ON_CURVE, REPEAT, X_DUAL, X_SHORT_VECTOR, Y_DUAL, Y_SHORT_VECTOR |
Constructor Summary | |
---|---|
GlyfCompositeDescript(TTFDataStream bais,
GlyphTable glyphTable)
Constructor. |
Method Summary | |
---|---|
int |
getComponentCount()
|
int |
getContourCount()
Returns the number of contours. |
int |
getEndPtOfContours(int i)
Returns the index of the ending point of the given contour. |
byte |
getFlags(int i)
Returns the flags of the given point. |
int |
getPointCount()
Returns the number of points. |
short |
getXCoordinate(int i)
Returns the x coordinate of the given point. |
short |
getYCoordinate(int i)
Returns the y coordinate of the given point. |
boolean |
isComposite()
Returns whether this point is a composite or not. |
void |
resolve()
Resolve all parts of an composite glyph. |
Methods inherited from class org.apache.fontbox.ttf.GlyfDescript |
---|
getInstructions, readInstructions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlyfCompositeDescript(TTFDataStream bais, GlyphTable glyphTable) throws java.io.IOException
bais
- the stream to be readglyphTable
- the Glyphtable containing all glyphs
java.io.IOException
- is thrown if something went wrongMethod Detail |
---|
public void resolve()
resolve
in interface GlyphDescription
resolve
in class GlyfDescript
public int getEndPtOfContours(int i)
i
- the number of the contour
public byte getFlags(int i)
i
- the given point
public short getXCoordinate(int i)
i
- the given point
public short getYCoordinate(int i)
i
- the given point
public boolean isComposite()
public int getPointCount()
public int getContourCount()
getContourCount
in interface GlyphDescription
getContourCount
in class GlyfDescript
public int getComponentCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |