public class Glyf
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Glyf()
Creates a new instance of glyf
Don't use this directly, use
Glyf.getGlyf() |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getData()
Get the data in this glyf as a byte buffer.
|
static Glyf |
getGlyf(java.nio.ByteBuffer data)
Get a map from the given data
This method reads the format, data and length variables of
the map.
|
short |
getLength()
Get the length of this glyf.
|
short |
getMaxX()
Get the maximum x in this glyf
|
short |
getMaxY()
Get the maximum y in this glyf
|
short |
getMinX()
Get the minimum x in this glyf
|
short |
getMinY()
Get the minimum y in this glyf
|
short |
getNumContours()
Get the number of contours in this glyf
|
boolean |
isCompound()
Get whether this is a simple or compound glyf
|
protected void |
setCompound(boolean isCompound)
Set whether this is a simple or compound glyf
|
void |
setData(java.nio.ByteBuffer data)
Set the data for this glyf.
|
protected void |
setMaxX(short maxX)
Set the maximum X in this glyf
|
protected void |
setMaxY(short maxY)
Set the maximum Y in this glyf
|
protected void |
setMinX(short minX)
Set the minimum X in this glyf
|
protected void |
setMinY(short minY)
Set the minimum Y in this glyf
|
protected void |
setNumContours(short numContours)
Set the number of contours in this glyf
|
protected Glyf()
Glyf.getGlyf()
public static Glyf getGlyf(java.nio.ByteBuffer data)
public void setData(java.nio.ByteBuffer data)
public java.nio.ByteBuffer getData()
public short getLength()
public boolean isCompound()
protected void setCompound(boolean isCompound)
public short getNumContours()
protected void setNumContours(short numContours)
public short getMinX()
protected void setMinX(short minX)
public short getMinY()
protected void setMinY(short minY)
public short getMaxX()
protected void setMaxX(short maxX)
public short getMaxY()
protected void setMaxY(short maxY)