public class GlyfSimpleDescript extends GlyfDescript
Modifier and Type | Field and Description |
---|---|
private int |
count |
private int[] |
endPtsOfContours |
private byte[] |
flags |
private short[] |
xCoordinates |
private short[] |
yCoordinates |
onCurve, parentTable, repeat, xDual, xShortVector, yDual, yShortVector
Constructor and Description |
---|
GlyfSimpleDescript(GlyfTable parentTable,
short numberOfContours,
java.io.ByteArrayInputStream bais) |
Modifier and Type | Method and Description |
---|---|
int |
getContourCount() |
int |
getEndPtOfContours(int i) |
byte |
getFlags(int i) |
int |
getPointCount() |
short |
getXCoordinate(int i) |
short |
getYCoordinate(int i) |
boolean |
isComposite() |
private void |
readCoords(int count,
java.io.ByteArrayInputStream bais)
The table is stored as relative values, but we'll store them as absolutes
|
private void |
readFlags(int flagCount,
java.io.ByteArrayInputStream bais)
The flags are run-length encoded
|
getNumberOfContours, getXMaximum, getXMinimum, getYMaximum, getYMinimum, resolve
getInstructions, readInstructions, readInstructions
private int[] endPtsOfContours
private byte[] flags
private short[] xCoordinates
private short[] yCoordinates
private int count
public GlyfSimpleDescript(GlyfTable parentTable, short numberOfContours, java.io.ByteArrayInputStream bais)
public int getEndPtOfContours(int i)
public byte getFlags(int i)
public short getXCoordinate(int i)
public short getYCoordinate(int i)
public boolean isComposite()
public int getPointCount()
public int getContourCount()
private void readCoords(int count, java.io.ByteArrayInputStream bais)
private void readFlags(int flagCount, java.io.ByteArrayInputStream bais)