Class GlyfSimpleDescript
java.lang.Object
org.apache.batik.svggen.font.table.Program
org.apache.batik.svggen.font.table.GlyfDescript
org.apache.batik.svggen.font.table.GlyfSimpleDescript
- All Implemented Interfaces:
GlyphDescription
- Version:
- $Id: GlyfSimpleDescript.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int[]
private byte[]
private short[]
private short[]
Fields inherited from class org.apache.batik.svggen.font.table.GlyfDescript
onCurve, parentTable, repeat, xDual, xShortVector, yDual, yShortVector
-
Constructor Summary
ConstructorsConstructorDescriptionGlyfSimpleDescript
(GlyfTable parentTable, short numberOfContours, ByteArrayInputStream bais) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getEndPtOfContours
(int i) byte
getFlags
(int i) int
short
getXCoordinate
(int i) short
getYCoordinate
(int i) boolean
private void
readCoords
(int count, ByteArrayInputStream bais) The table is stored as relative values, but we'll store them as absolutesprivate void
readFlags
(int flagCount, ByteArrayInputStream bais) The flags are run-length encodedMethods inherited from class org.apache.batik.svggen.font.table.GlyfDescript
getNumberOfContours, getXMaximum, getXMinimum, getYMaximum, getYMinimum, resolve
Methods inherited from class org.apache.batik.svggen.font.table.Program
getInstructions, readInstructions, readInstructions
-
Field Details
-
endPtsOfContours
private int[] endPtsOfContours -
flags
private byte[] flags -
xCoordinates
private short[] xCoordinates -
yCoordinates
private short[] yCoordinates -
count
private int count
-
-
Constructor Details
-
GlyfSimpleDescript
-
-
Method Details
-
getEndPtOfContours
public int getEndPtOfContours(int i) -
getFlags
public byte getFlags(int i) -
getXCoordinate
public short getXCoordinate(int i) -
getYCoordinate
public short getYCoordinate(int i) -
isComposite
public boolean isComposite() -
getPointCount
public int getPointCount() -
getContourCount
public int getContourCount() -
readCoords
The table is stored as relative values, but we'll store them as absolutes -
readFlags
The flags are run-length encoded
-