de.dante.extex.font.type.tfm
Class TFMLigKern

java.lang.Object
  extended byde.dante.extex.font.type.tfm.TFMLigKern
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TFMKerning, TFMLigature

public abstract class TFMLigKern
extends java.lang.Object
implements java.io.Serializable

TFM-LigKern

Base class for Ligature and Kerning instructions. It handles the skip amount to the next instruction in the kern/lig program and the character code for the next character.

Version:
$Revision: 1.5 $
Author:
Michael Niedermair
See Also:
lig_kern, Serialized Form

Constructor Summary
TFMLigKern(int askip, short next)
          Create a new object
 
Method Summary
 TFMFixWord getKern()
          Return the kern
 short getNextChar()
           
 int nextIndex(int pos)
          Tells the index to the ligtable of the next instruction of lig/kern program for given index of this instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFMLigKern

public TFMLigKern(int askip,
                  short next)
Create a new object

Parameters:
askip - the skip amount to the next instruction. 0 means the folowing instruction is the next, a number < 0 means that there is no next instruction (this is the last).
next - the code of the next character.
Method Detail

getKern

public TFMFixWord getKern()
Return the kern

Returns:
Return the kern

nextIndex

public int nextIndex(int pos)
Tells the index to the ligtable of the next instruction of lig/kern program for given index of this instruction.

Parameters:
pos - the index of this instruction.
Returns:
the index of the next instruction or if this is the last instruction of the lig/kern program.

getNextChar

public short getNextChar()
Returns:
Returns the nextChar.