| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private byte[] | |
| private static final Log | LOG
Log instance. |
| private final int | |
| private short[] | |
| private short[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | GlyfSimpleDescript(short
number of contours numberOfContours, TTFDataStream the stream to be read bais, short the initial X-position x0)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getEndPtOfContours(int
the number of the contour i)Implements org. Returns the index of the ending point of the given contour. |
| public byte | getFlags(int
the given point i)Implements org. Returns the flags of the given point. |
| public int | getPointCount()
Implements org. Returns the number of points. |
| public short | getXCoordinate(int
the given point i)Implements org. Returns the x coordinate of the given point. |
| public short | getYCoordinate(int
the given point i)Implements org. Returns the y coordinate of the given point. |
| public boolean | isComposite()
Implements org. Returns whether this point is a composite or not. |
| private void | readCoords(int count, TTFDataStream bais, short x0)
The table is stored as relative values, but we'll store them as absolutes. |
| private void |
| endPtsOfContours | back to summary |
|---|---|
| private int[] endPtsOfContours | |
| flags | back to summary |
|---|---|
| private byte[] flags | |
| LOG | back to summary |
|---|---|
| private static final Log LOG Log instance. | |
| pointCount | back to summary |
|---|---|
| private final int pointCount | |
| xCoordinates | back to summary |
|---|---|
| private short[] xCoordinates | |
| yCoordinates | back to summary |
|---|---|
| private short[] yCoordinates | |
| GlyfSimpleDescript | back to summary |
|---|---|
| pack-priv GlyfSimpleDescript() Constructor for an empty description. | |
| GlyfSimpleDescript | back to summary |
|---|---|
| pack-priv GlyfSimpleDescript(short numberOfContours, TTFDataStream bais, short x0) throws IOException Constructor.
| |
| getEndPtOfContours | back to summary |
|---|---|
| public int getEndPtOfContours(int i) Implements org. Doc from org. Returns the index of the ending point of the given contour.
| |
| getFlags | back to summary |
|---|---|
| public byte getFlags(int i) Implements org. Doc from org. Returns the flags of the given point. To decode these bit flags, use the static elements of
| |
| getPointCount | back to summary |
|---|---|
| public int getPointCount() Implements org. Doc from org. Returns the number of points.
| |
| getXCoordinate | back to summary |
|---|---|
| public short getXCoordinate(int i) Implements org. Doc from org. Returns the x coordinate of the given point.
| |
| getYCoordinate | back to summary |
|---|---|
| public short getYCoordinate(int i) Implements org. Doc from org. Returns the y coordinate of the given point.
| |
| isComposite | back to summary |
|---|---|
| public boolean isComposite() Implements org. Doc from org. Returns whether this point is a composite or not.
| |
| readCoords | back to summary |
|---|---|
| private void readCoords(int count, TTFDataStream bais, short x0) throws IOException The table is stored as relative values, but we'll store them as absolutes. | |
| readFlags | back to summary |
|---|---|
| private void readFlags(int flagCount, TTFDataStream bais) throws IOException The flags are run-length encoded. | |