public class GlyfCompound extends Glyf
Modifier | Constructor and Description |
---|---|
protected |
GlyfCompound()
Creates a new instance of a simple glyf
|
Modifier and Type | Method and Description |
---|---|
boolean |
argsAreWords(int index)
Determine whether args 1 and 2 are words or bytes
|
boolean |
argsAreXYValues(int index)
Determine whether args 1 and 2 are xy values or point indices
|
int |
getComponentPoint(int index)
Get the point in the component glyph to match
|
int |
getCompoundPoint(int index)
Get the point in the compound glyph to match
|
java.nio.ByteBuffer |
getData()
Get the data in this glyf as a byte buffer.
|
short |
getFlag(int index)
Get a given flag
|
short |
getGlyphIndex(int index)
Get the glyf index for a given glyf
|
byte |
getInstruction(int index)
Get a given instruction
|
short |
getLength()
Get the length of this glyf.
|
int |
getNumComponents()
Get the number of components in this compound
|
short |
getNumInstructions()
Get the number of instructions
|
double[] |
getTransform(int index)
Get the base affine transform.
|
boolean |
hasAScale(int index)
Determine whether there is a simple scale
|
protected boolean |
hasInstructions(int index)
Determine whether there are instructions
|
protected boolean |
hasTwoByTwo(int index)
Determine whether there is a 2x2 transform
|
protected boolean |
hasXYScale(int index)
Determine whether there are separate scales on X and Y
|
protected boolean |
moreComponents(int index)
Determine whether there are more components left to read
|
boolean |
overlapCompound(int index)
This component overlaps the existing compound
|
boolean |
roundXYToGrid(int index)
Determine whether to round XY values to the grid
|
void |
setData(java.nio.ByteBuffer data)
Set the data for this glyf.
|
protected void |
setInstructions(byte[] instructions)
Set the instructions
|
boolean |
useMetrics(int index)
Use the metrics of this component for the compound
|
getGlyf, getMaxX, getMaxY, getMinX, getMinY, getNumContours, isCompound, setCompound, setMaxX, setMaxY, setMinX, setMinY, setNumContours
public void setData(java.nio.ByteBuffer data)
public java.nio.ByteBuffer getData()
public short getLength()
public int getNumComponents()
public short getFlag(int index)
public short getGlyphIndex(int index)
public double[] getTransform(int index)
public int getCompoundPoint(int index)
public int getComponentPoint(int index)
public boolean argsAreWords(int index)
public boolean argsAreXYValues(int index)
public boolean roundXYToGrid(int index)
public boolean hasAScale(int index)
protected boolean moreComponents(int index)
protected boolean hasXYScale(int index)
protected boolean hasTwoByTwo(int index)
protected boolean hasInstructions(int index)
public boolean useMetrics(int index)
public boolean overlapCompound(int index)
public short getNumInstructions()
public byte getInstruction(int index)
protected void setInstructions(byte[] instructions)