public class GlyfCompositeDescript extends GlyfDescript
Modifier and Type | Field and Description |
---|---|
private boolean |
beingResolved |
private java.util.List<GlyfCompositeComp> |
components |
private int |
contourCount |
private java.util.Map<java.lang.Integer,GlyphDescription> |
descriptions |
private GlyphTable |
glyphTable |
private static org.apache.commons.logging.Log |
LOG
Log instance.
|
private int |
pointCount |
private boolean |
resolved |
ON_CURVE, REPEAT, X_DUAL, X_SHORT_VECTOR, Y_DUAL, Y_SHORT_VECTOR
Constructor and Description |
---|
GlyfCompositeDescript(TTFDataStream bais,
GlyphTable glyphTable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getComponentCount()
Get number of components.
|
private GlyfCompositeComp |
getCompositeComp(int i) |
private GlyfCompositeComp |
getCompositeCompEndPt(int i) |
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.
|
private void |
initDescriptions() |
boolean |
isComposite()
Returns whether this point is a composite or not.
|
void |
resolve()
Resolve all parts of an composite glyph.
|
getInstructions, readInstructions
private static final org.apache.commons.logging.Log LOG
private final java.util.List<GlyfCompositeComp> components
private final java.util.Map<java.lang.Integer,GlyphDescription> descriptions
private GlyphTable glyphTable
private boolean beingResolved
private boolean resolved
private int pointCount
private int contourCount
GlyfCompositeDescript(TTFDataStream bais, GlyphTable glyphTable) throws java.io.IOException
bais
- the stream to be readglyphTable
- the Glyphtable containing all glyphsjava.io.IOException
- is thrown if something went wrongpublic void resolve()
resolve
in interface GlyphDescription
resolve
in class GlyfDescript
public int getEndPtOfContours(int i)
i
- the number of the contourpublic byte getFlags(int i)
GlyfDescript
. See also "Outline flags" in
The
'glyf' table in the TrueType Reference Manual.i
- the given pointpublic short getXCoordinate(int i)
i
- the given pointpublic short getYCoordinate(int i)
i
- the given pointpublic boolean isComposite()
public int getPointCount()
public int getContourCount()
getContourCount
in interface GlyphDescription
getContourCount
in class GlyfDescript
public int getComponentCount()
private GlyfCompositeComp getCompositeComp(int i)
private GlyfCompositeComp getCompositeCompEndPt(int i)
private void initDescriptions()