Class GlyfCompositeDescript
java.lang.Object
org.ofdrw.converter.font.GlyfDescript
org.ofdrw.converter.font.GlyfCompositeDescript
- All Implemented Interfaces:
org.apache.fontbox.ttf.GlyphDescription
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
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortFields inherited from class GlyfDescript
ON_CURVE, REPEAT, X_DUAL, X_SHORT_VECTOR, Y_DUAL, Y_SHORT_VECTORModifier and TypeFieldDescriptionstatic final byteif set, the point is on the curve.static final byteif set, the next byte specifies the number of additional times this set of flags is to be repeated.static final byteThis flag as two meanings, depending on how the x-short vector flags is set.static final byteif set, the x-coordinate is 1 byte long.static final byteThis flag as two meanings, depending on how the y-short vector flags is set.static final byteif set, the y-coordinate is 1 byte long. -
Method Summary
Modifier and TypeMethodDescriptionintGet number of components.intintgetEndPtOfContours(int i) bytegetFlags(int i) intshortgetXCoordinate(int i) shortgetYCoordinate(int i) booleanvoidresolve()Methods inherited from class GlyfDescript
getInstructions
-
Field Details
-
MORE_COMPONENTS
public static final short MORE_COMPONENTS- See Also:
-
WE_HAVE_INSTRUCTIONS
public static final short WE_HAVE_INSTRUCTIONS- See Also:
-
-
Method Details
-
resolve
public void resolve()- Specified by:
resolvein interfaceorg.apache.fontbox.ttf.GlyphDescription- Overrides:
resolvein classGlyfDescript
-
getEndPtOfContours
public int getEndPtOfContours(int i) -
getFlags
public byte getFlags(int i) -
getXCoordinate
public short getXCoordinate(int i) -
getYCoordinate
public short getYCoordinate(int i) -
isComposite
public boolean isComposite() -
getPointCount
public int getPointCount() -
getContourCount
public int getContourCount()- Specified by:
getContourCountin interfaceorg.apache.fontbox.ttf.GlyphDescription- Overrides:
getContourCountin classGlyfDescript
-
getComponentCount
public int getComponentCount()Get number of components.- Returns:
- the number of components
-