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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.cff.T2CharString
      extended by org.extex.font.format.xtf.tables.cff.T1DictKey
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
T1DictBoolean, T1DictDelta, T1DictNumber

public abstract class T1DictKey
extends T2CharString
implements XMLWriterConvertible

Type�1 dict keys.

Version:
$Revision: 7274 $
Author:
Michael Niedermair

Field Summary
static int BLUE_FUZZ
          BlueFuzz.
static int BLUE_SCALE
          BlueScale.
static int BLUE_SHIFT
          BlueShift.
static int BLUE_VALUES
          BlueValues.
static int DEFAULT_WIDTH_X
          defaultWidthX.
static int EXPANSION_FACTOR
          ExpansionFactor.
static int FAMILY_BLUES
          FamilyBlues.
static int FAMILY_OTHER_BLUES
          FamilyOtherBlues.
static int FORCES_BOLD
          ForceBold
static int INITIAL_RANDOM_SEED
          initialRandomSeed.
static int LANGUAGE_GROUP
          LanguageGroup.
static int NOMINAL_WIDTH_X
          nominalWidthX.
static int OTHER_BLUES
          OtherBlues.
static int STD_H_W
          StdHW.
static int STD_V_W
          StdVW
static int STEM_SNAP_H
          StemSnapH.
static int STEM_SNAP_V
          StemSnapV.
static int SUBRS
          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
T1DictKey()
           
 
Method Summary
protected  short[] convertStackaddID(java.util.List<? extends T2CharString> stack, short[] id)
          Convert a stack (a List) into an array and add at the top the id-array.
abstract  java.lang.String getName()
          Return the name of the operator.
abstract  java.lang.Object getValue()
          Returns the value of the operator.
 void init(RandomAccessR rar, OtfTableCFF cff, int baseoffset, CffFont cffFont)
          Initialize.
static T1DictKey newInstance(RandomAccessR rar)
          Create a new instance.
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T2CharString
getBytes, getInitPrio, isArray, isBoolean, isDouble, isEscape, isInteger, isOperator, isTopDICTOperator, readNumber, readNumber, readSID, readTopDICTOperator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.util.xml.XMLWriterConvertible
writeXML
 

Field Detail

BLUE_FUZZ

public static final int BLUE_FUZZ
BlueFuzz.

See Also:
Constant Field Values

BLUE_SCALE

public static final int BLUE_SCALE
BlueScale.

See Also:
Constant Field Values

BLUE_SHIFT

public static final int BLUE_SHIFT
BlueShift.

See Also:
Constant Field Values

BLUE_VALUES

public static final int BLUE_VALUES
BlueValues.

See Also:
Constant Field Values

DEFAULT_WIDTH_X

public static final int DEFAULT_WIDTH_X
defaultWidthX.

See Also:
Constant Field Values

EXPANSION_FACTOR

public static final int EXPANSION_FACTOR
ExpansionFactor.

See Also:
Constant Field Values

FAMILY_BLUES

public static final int FAMILY_BLUES
FamilyBlues.

See Also:
Constant Field Values

FAMILY_OTHER_BLUES

public static final int FAMILY_OTHER_BLUES
FamilyOtherBlues.

See Also:
Constant Field Values

FORCES_BOLD

public static final int FORCES_BOLD
ForceBold

See Also:
Constant Field Values

INITIAL_RANDOM_SEED

public static final int INITIAL_RANDOM_SEED
initialRandomSeed.

See Also:
Constant Field Values

LANGUAGE_GROUP

public static final int LANGUAGE_GROUP
LanguageGroup.

See Also:
Constant Field Values

NOMINAL_WIDTH_X

public static final int NOMINAL_WIDTH_X
nominalWidthX.

See Also:
Constant Field Values

OTHER_BLUES

public static final int OTHER_BLUES
OtherBlues.

See Also:
Constant Field Values

STD_H_W

public static final int STD_H_W
StdHW.

See Also:
Constant Field Values

STD_V_W

public static final int STD_V_W
StdVW

See Also:
Constant Field Values

STEM_SNAP_H

public static final int STEM_SNAP_H
StemSnapH.

See Also:
Constant Field Values

STEM_SNAP_V

public static final int STEM_SNAP_V
StemSnapV.

See Also:
Constant Field Values

SUBRS

public static final int SUBRS
Subrs.

See Also:
Constant Field Values
Constructor Detail

T1DictKey

public T1DictKey()
Method Detail

newInstance

public static T1DictKey newInstance(RandomAccessR rar)
                             throws java.io.IOException
Create a new instance.

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

convertStackaddID

protected short[] convertStackaddID(java.util.List<? extends T2CharString> stack,
                                    short[] id)
Convert a stack (a List) into an array and add at the top the id-array.

Parameters:
stack - the stack
id - the id-array
Returns:
Return the byte-array

getName

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

Returns:
Return the name of the operator.

getValue

public abstract java.lang.Object getValue()
Returns the value of the operator.

Returns:
Returns the value of the operator.

init

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

Specified by:
init in class T2CharString
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.
See Also:
T2CharString.init(org.extex.util.file.random.RandomAccessR, org.extex.font.format.xtf.tables.OtfTableCFF, int, org.extex.font.format.xtf.tables.cff.CffFont)