Class GlyfDescript
java.lang.Object
org.apache.fontbox.ttf.GlyfDescript
- All Implemented Interfaces:
GlyphDescription
- Direct Known Subclasses:
GlyfCompositeDescript, GlyfSimpleDescript
This class is based on code from Apache Batik, a subproject of Apache XMLGraphics.
see The Apache? Batik Project for further details.
-
Field Summary
FieldsModifier 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 TypeMethodDescriptionintReturns the number of contours.int[]Returns the hinting instructions.voidresolve()Resolve all parts of an composite glyph.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GlyphDescription
getEndPtOfContours, getFlags, getPointCount, getXCoordinate, getYCoordinate, isComposite
-
Field Details
-
ON_CURVE
public static final byte ON_CURVEif set, the point is on the curve.- See Also:
-
X_SHORT_VECTOR
public static final byte X_SHORT_VECTORif set, the x-coordinate is 1 byte long.- See Also:
-
Y_SHORT_VECTOR
public static final byte Y_SHORT_VECTORif set, the y-coordinate is 1 byte long.- See Also:
-
REPEAT
public static final byte REPEATif set, the next byte specifies the number of additional times this set of flags is to be repeated.- See Also:
-
X_DUAL
public static final byte X_DUALThis flag as two meanings, depending on how the x-short vector flags is set. If the x-short vector is set, this bit describes the sign of the value, with 1 equaling positive and 0 positive. If the x-short vector is not set and this bit is also not set, the current x-coordinate is a signed 16-bit delta vector.- See Also:
-
Y_DUAL
public static final byte Y_DUALThis flag as two meanings, depending on how the y-short vector flags is set. If the y-short vector is set, this bit describes the sign of the value, with 1 equaling positive and 0 positive. If the y-short vector is not set and this bit is also not set, the current y-coordinate is a signed 16-bit delta vector.- See Also:
-
-
Method Details
-
resolve
public void resolve()Resolve all parts of an composite glyph.- Specified by:
resolvein interfaceGlyphDescription
-
getContourCount
public int getContourCount()Returns the number of contours.- Specified by:
getContourCountin interfaceGlyphDescription- Returns:
- the number of contours
-
getInstructions
public int[] getInstructions()Returns the hinting instructions.- Returns:
- an array containing the hinting instructions.
-