org.extex.font.format.xtf.tables.cff
Class T2CharString

java.lang.Object
  extended by org.extex.font.format.xtf.tables.cff.T2CharString
Direct Known Subclasses:
T1DictKey, T2Escape, T2Number, T2Operator

public abstract class T2CharString
extends java.lang.Object

The Type 2 Charstring format.

Version:
$Revision: 6604 $
Author:
Michael Niedermair
See Also:
Adobe Technical Note #5177: Type 2 Charstring Format

Field Summary
static T2Escape ESCAPE
          escape
static byte ESCAPE_BYTE
          escape-byte.
static int T2CALLGSUBR
          callgsubr.
static int T2CALLSUBR
          callsubr.
static int T2CNTRMASK
          cntrmask (20).
static int T2ENDCHAR
          endchar.
static int T2FLEX
          flex (12 35).
static int T2FLEX1
          flex1 (12 37).
static int T2HFLEX
          hflex (12 34).
static int T2HFLEX1
          hflex1 (12 36).
static int T2HHCURVETO
          hhcurveto.
static int T2HINTMASK
          hintmask.
static int T2HLINETO
          hlineto
static int T2HMOVETO
          hmoveto
static int T2HSTEM
          hstem.
static int T2HSTEMHM
          hstemhm.
static int T2HVCURVETO
          hvcurveto.
static int T2RCURVELINE
          rcurveline.
static int T2RETURN
          return (11).
static int T2RLINECURVE
          rlinecurve.
static int T2RLINETO
          rlineto
static int T2RMOVETO
          rmoveto
static int T2RRCURVETO
          rrcurveto.
static int T2VHCURVETO
          vhcurveto.
static int T2VLINETO
          vlineto
static int T2VMOVETO
          vmoveto
static int T2VSTEM
          vstem.
static int T2VSTEMHM
          vstemhm.
static int T2VVCURVETO
          vvcurveto.
static int TYPE_CALLGSUBR
          Type callgsubr.
static int TYPE_CALLSUBR
          Type callsubr.
static int TYPE_CNTRMASK
          Type cntrmask.
static int TYPE_ENDCHAR
          Type endchar.
static int TYPE_FLEX
          Type flex.
static int TYPE_FLEX1
          Type flex1.
static int TYPE_HFLEX
          Type hflex.
static int TYPE_HFLEX1
          Type hflex1.
static int TYPE_HHCURVETO
          Type hhcurveto.
static int TYPE_HINTMASK
          Type hintmask.
static int TYPE_HLINETO
          Type hlineto.
static int TYPE_HMOVETO
          Type hmoveto.
static int TYPE_HSTEM
          Type hstem.
static int TYPE_HSTEMHM
          Type hstemhm.
static int TYPE_HVCURVETO
          Type hvcurveto.
static int TYPE_RCURVELINE
          Type rcurveline.
static int TYPE_RETURN
          Type return.
static int TYPE_RLINECURVE
          Type rlinecurve.
static int TYPE_RLINETO
          Type rlineto.
static int TYPE_RMOVETO
          Type rmoveto.
static int TYPE_RRCURVETO
          Type rrcurveto.
static int TYPE_VHCURVETO
          Type vhcurveto.
static int TYPE_VLINETO
          Type vlineto.
static int TYPE_VMOVETO
          Type vmoveto.
static int TYPE_VSTEM
          Type vstem.
static int TYPE_VSTEMHM
          Type vstemhm.
static int TYPE_VVCURVETO
          Type vvcurveto.
 
Constructor Summary
protected T2CharString()
          Create a new object.
 
Method Summary
abstract  short[] getBytes()
          Returns the byte-array as short for the object.
 int getInitPrio()
          Returns the priority for the init process.
abstract  void init(RandomAccessR rar, OtfTableCFF cff, int baseoffset, CffFont cffFont)
          Initialize.
 boolean isArray()
          Check, if the object is a array.
 boolean isBoolean()
          Check, if the object is a boolean.
 boolean isDouble()
          Check, if the object is a double.
 boolean isEscape()
          Check, if the object is an escape-marker.
 boolean isInteger()
          Check, if the object is a integer.
 boolean isOperator()
          Check, if the object is an operator.
 boolean isTopDICTOperator()
          Check, if the object is a Top DICT operator.
static T2Number readNumber(RandomAccessR rar)
          Read a number.
static T2Number readNumber(RandomAccessR rar, int b0)
          Read a number.
static T2SID readSID(RandomAccessR rar)
          Read a SID.
static T2Operator readTopDICTOperator(RandomAccessR rar)
          Read a top DICT operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ESCAPE

public static final T2Escape ESCAPE
escape


ESCAPE_BYTE

public static final byte ESCAPE_BYTE
escape-byte.

See Also:
Constant Field Values

T2CALLGSUBR

public static final int T2CALLGSUBR
callgsubr.

See Also:
Constant Field Values

T2CALLSUBR

public static final int T2CALLSUBR
callsubr.

See Also:
Constant Field Values

T2CNTRMASK

public static final int T2CNTRMASK
cntrmask (20).

See Also:
Constant Field Values

T2ENDCHAR

public static final int T2ENDCHAR
endchar.

See Also:
Constant Field Values

T2FLEX

public static final int T2FLEX
flex (12 35).

See Also:
Constant Field Values

T2FLEX1

public static final int T2FLEX1
flex1 (12 37).

See Also:
Constant Field Values

T2HFLEX

public static final int T2HFLEX
hflex (12 34).

See Also:
Constant Field Values

T2HFLEX1

public static final int T2HFLEX1
hflex1 (12 36).

See Also:
Constant Field Values

T2HHCURVETO

public static final int T2HHCURVETO
hhcurveto.

See Also:
Constant Field Values

T2HINTMASK

public static final int T2HINTMASK
hintmask.

See Also:
Constant Field Values

T2HLINETO

public static final int T2HLINETO
hlineto

See Also:
Constant Field Values

T2HMOVETO

public static final int T2HMOVETO
hmoveto

See Also:
Constant Field Values

T2HSTEM

public static final int T2HSTEM
hstem.

See Also:
Constant Field Values

T2HSTEMHM

public static final int T2HSTEMHM
hstemhm.

See Also:
Constant Field Values

T2HVCURVETO

public static final int T2HVCURVETO
hvcurveto.

See Also:
Constant Field Values

T2RCURVELINE

public static final int T2RCURVELINE
rcurveline.

See Also:
Constant Field Values

T2RETURN

public static final int T2RETURN
return (11).

See Also:
Constant Field Values

T2RLINECURVE

public static final int T2RLINECURVE
rlinecurve.

See Also:
Constant Field Values

T2RLINETO

public static final int T2RLINETO
rlineto

See Also:
Constant Field Values

T2RMOVETO

public static final int T2RMOVETO
rmoveto

See Also:
Constant Field Values

T2RRCURVETO

public static final int T2RRCURVETO
rrcurveto.

See Also:
Constant Field Values

T2VHCURVETO

public static final int T2VHCURVETO
vhcurveto.

See Also:
Constant Field Values

T2VLINETO

public static final int T2VLINETO
vlineto

See Also:
Constant Field Values

T2VMOVETO

public static final int T2VMOVETO
vmoveto

See Also:
Constant Field Values

T2VSTEM

public static final int T2VSTEM
vstem.

See Also:
Constant Field Values

T2VSTEMHM

public static final int T2VSTEMHM
vstemhm.

See Also:
Constant Field Values

T2VVCURVETO

public static final int T2VVCURVETO
vvcurveto.

See Also:
Constant Field Values

TYPE_CALLGSUBR

public static final int TYPE_CALLGSUBR
Type callgsubr.

See Also:
Constant Field Values

TYPE_CALLSUBR

public static final int TYPE_CALLSUBR
Type callsubr.

See Also:
Constant Field Values

TYPE_CNTRMASK

public static final int TYPE_CNTRMASK
Type cntrmask.

See Also:
Constant Field Values

TYPE_ENDCHAR

public static final int TYPE_ENDCHAR
Type endchar.

See Also:
Constant Field Values

TYPE_FLEX

public static final int TYPE_FLEX
Type flex.

See Also:
Constant Field Values

TYPE_FLEX1

public static final int TYPE_FLEX1
Type flex1.

See Also:
Constant Field Values

TYPE_HFLEX

public static final int TYPE_HFLEX
Type hflex.

See Also:
Constant Field Values

TYPE_HFLEX1

public static final int TYPE_HFLEX1
Type hflex1.

See Also:
Constant Field Values

TYPE_HHCURVETO

public static final int TYPE_HHCURVETO
Type hhcurveto.

See Also:
Constant Field Values

TYPE_HINTMASK

public static final int TYPE_HINTMASK
Type hintmask.

See Also:
Constant Field Values

TYPE_HLINETO

public static final int TYPE_HLINETO
Type hlineto.

See Also:
Constant Field Values

TYPE_HMOVETO

public static final int TYPE_HMOVETO
Type hmoveto.

See Also:
Constant Field Values

TYPE_HSTEM

public static final int TYPE_HSTEM
Type hstem.

See Also:
Constant Field Values

TYPE_HSTEMHM

public static final int TYPE_HSTEMHM
Type hstemhm.

See Also:
Constant Field Values

TYPE_HVCURVETO

public static final int TYPE_HVCURVETO
Type hvcurveto.

See Also:
Constant Field Values

TYPE_RCURVELINE

public static final int TYPE_RCURVELINE
Type rcurveline.

See Also:
Constant Field Values

TYPE_RETURN

public static final int TYPE_RETURN
Type return.

See Also:
Constant Field Values

TYPE_RLINECURVE

public static final int TYPE_RLINECURVE
Type rlinecurve.

See Also:
Constant Field Values

TYPE_RLINETO

public static final int TYPE_RLINETO
Type rlineto.

See Also:
Constant Field Values

TYPE_RMOVETO

public static final int TYPE_RMOVETO
Type rmoveto.

See Also:
Constant Field Values

TYPE_RRCURVETO

public static final int TYPE_RRCURVETO
Type rrcurveto.

See Also:
Constant Field Values

TYPE_VHCURVETO

public static final int TYPE_VHCURVETO
Type vhcurveto.

See Also:
Constant Field Values

TYPE_VLINETO

public static final int TYPE_VLINETO
Type vlineto.

See Also:
Constant Field Values

TYPE_VMOVETO

public static final int TYPE_VMOVETO
Type vmoveto.

See Also:
Constant Field Values

TYPE_VSTEM

public static final int TYPE_VSTEM
Type vstem.

See Also:
Constant Field Values

TYPE_VSTEMHM

public static final int TYPE_VSTEMHM
Type vstemhm.

See Also:
Constant Field Values

TYPE_VVCURVETO

public static final int TYPE_VVCURVETO
Type vvcurveto.

See Also:
Constant Field Values
Constructor Detail

T2CharString

protected T2CharString()
Create a new object.

Method Detail

readNumber

public static T2Number readNumber(RandomAccessR rar)
                           throws java.io.IOException
Read a number.

Parameters:
rar - the input
Returns:
Returns the number.
Throws:
java.io.IOException - if an IO-error occurs.

readNumber

public static T2Number readNumber(RandomAccessR rar,
                                  int b0)
                           throws java.io.IOException
Read a number.

Parameters:
rar - the input
b0 - the first byte
Returns:
Returns the number.
Throws:
java.io.IOException - if an IO-error occurs.

readSID

public static T2SID readSID(RandomAccessR rar)
                     throws java.io.IOException
Read a SID.

SID (0-64999) 2-byte string identifier

Parameters:
rar - the input
Returns:
Returns the SID.
Throws:
java.io.IOException - if an IO-error occurs.

readTopDICTOperator

public static T2Operator readTopDICTOperator(RandomAccessR rar)
                                      throws java.io.IOException
Read a top DICT operator.

Parameters:
rar - the input
Returns:
Return the Top DICT operator
Throws:
java.io.IOException - if an IO-error occurs

getBytes

public abstract short[] getBytes()
Returns the byte-array as short for the object.

Returns:
Returns the byte-array for the object.

getInitPrio

public int getInitPrio()
Returns the priority for the init process.

Returns:
Returns the priority.

init

public abstract void init(RandomAccessR rar,
                          OtfTableCFF cff,
                          int baseoffset,
                          CffFont cffFont)
                   throws java.io.IOException
Initialize.

Parameters:
rar - The input
cff - The cff table
baseoffset - The base offset from cff.
cffFont - The cff font.
Throws:
java.io.IOException - if an IO-error occurred.

isArray

public boolean isArray()
Check, if the object is a array.

Returns:
Returns true, if the object is a array.

isBoolean

public boolean isBoolean()
Check, if the object is a boolean.

Returns:
Returns true, if the object is a boolean.

isDouble

public boolean isDouble()
Check, if the object is a double.

Returns:
Returns true, if the object is a double.

isEscape

public boolean isEscape()
Check, if the object is an escape-marker.

Returns:
Returns true, if the object is an escape-marker.

isInteger

public boolean isInteger()
Check, if the object is a integer.

Returns:
Returns true, if the object is a integer.

isOperator

public boolean isOperator()
Check, if the object is an operator.

Returns:
Returns true, if the object is an operator.

isTopDICTOperator

public boolean isTopDICTOperator()
Check, if the object is a Top DICT operator.

Returns:
Returns true, if the object is a Top DICT operator.