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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.cff.T2CharString
      extended by org.extex.font.format.xtf.tables.cff.T1DictKey
          extended by org.extex.font.format.xtf.tables.cff.T1DictNumber
              extended by org.extex.font.format.xtf.tables.cff.T1Subrs
All Implemented Interfaces:
XMLWriterConvertible

public class T1Subrs
extends T1DictNumber

Subrs.

Version:
$Revision: 7274 $
Author:
Michael Niedermair

Field Summary
 
Fields inherited from class org.extex.font.format.xtf.tables.cff.T1DictKey
BLUE_FUZZ, BLUE_SCALE, BLUE_SHIFT, BLUE_VALUES, DEFAULT_WIDTH_X, EXPANSION_FACTOR, FAMILY_BLUES, FAMILY_OTHER_BLUES, FORCES_BOLD, INITIAL_RANDOM_SEED, LANGUAGE_GROUP, NOMINAL_WIDTH_X, OTHER_BLUES, STD_H_W, STD_V_W, STEM_SNAP_H, STEM_SNAP_V, SUBRS
 
Fields inherited from class org.extex.font.format.xtf.tables.cff.T2CharString
ESCAPE, ESCAPE_BYTE, T2CALLGSUBR, T2CALLSUBR, T2CNTRMASK, T2ENDCHAR, T2FLEX, T2FLEX1, T2HFLEX, T2HFLEX1, T2HHCURVETO, T2HINTMASK, T2HLINETO, T2HMOVETO, T2HSTEM, T2HSTEMHM, T2HVCURVETO, T2RCURVELINE, T2RETURN, T2RLINECURVE, T2RLINETO, T2RMOVETO, T2RRCURVETO, T2VHCURVETO, T2VLINETO, T2VMOVETO, T2VSTEM, T2VSTEMHM, T2VVCURVETO, TYPE_CALLGSUBR, TYPE_CALLSUBR, TYPE_CNTRMASK, TYPE_ENDCHAR, TYPE_FLEX, TYPE_FLEX1, TYPE_HFLEX, TYPE_HFLEX1, TYPE_HHCURVETO, TYPE_HINTMASK, TYPE_HLINETO, TYPE_HMOVETO, TYPE_HSTEM, TYPE_HSTEMHM, TYPE_HVCURVETO, TYPE_RCURVELINE, TYPE_RETURN, TYPE_RLINECURVE, TYPE_RLINETO, TYPE_RMOVETO, TYPE_RRCURVETO, TYPE_VHCURVETO, TYPE_VLINETO, TYPE_VMOVETO, TYPE_VSTEM, TYPE_VSTEMHM, TYPE_VVCURVETO
 
Constructor Summary
T1Subrs(java.util.List<T2Number> stack)
          Create a new object.
 
Method Summary
 CharString getCharString(int idx)
          Returns the CharString with the index or null, if not found.
 java.lang.String getName()
          Return the name of the operator.
 void readSubrs(RandomAccessR rar, OtfTableCFF cff, int privateDictOffset, CffFont cffFont)
          Read the subrs.
 int size()
          Returns the size of the CharString array.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T1DictNumber
getBytes, getDouble, getInteger, getValue, isDouble, isInteger, toString
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T1DictKey
convertStackaddID, init, newInstance
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T2CharString
getInitPrio, isArray, isBoolean, isEscape, isOperator, isTopDICTOperator, readNumber, readNumber, readSID, readTopDICTOperator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

T1Subrs

public T1Subrs(java.util.List<T2Number> stack)
        throws java.io.IOException
Create a new object.

Parameters:
stack - the stack
Throws:
java.io.IOException - if an IO.error occurs.
Method Detail

getCharString

public CharString getCharString(int idx)
Returns the CharString with the index or null, if not found.

Parameters:
idx - The index.
Returns:
Returns the CharString with the index or null, if not found.

getName

public java.lang.String getName()
Return the name of the operator.

Specified by:
getName in class T1DictKey
Returns:
Return the name of the operator.
See Also:
T1DictKey.getName()

readSubrs

public void readSubrs(RandomAccessR rar,
                      OtfTableCFF cff,
                      int privateDictOffset,
                      CffFont cffFont)
               throws java.io.IOException
Read the subrs.

Parameters:
rar - The input.
cff - The cff object.
privateDictOffset - The offset.
cffFont - The cff font.
Throws:
java.io.IOException - if a IO-error occurred.

size

public int size()
Returns the size of the CharString array.

Returns:
Returns the size of the CharString array.

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Write the data to a XMLStreamWriter.

Specified by:
writeXML in interface XMLWriterConvertible
Overrides:
writeXML in class T1DictNumber
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML( org.extex.util.xml.XMLStreamWriter)