|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.tfm.TfmLigKernCommand
public class TfmLigKernCommand
Class for a lig_kern_command.
| byte | description |
| first | skip_byte, indicates that this is the program step if the byte is 128 or more, otherwise the next step is obtained by skipping this number of intervening steps. |
| second | next_char: if next_char follows the current character, then perform the operation and stop, otherwise continue. |
| third | op_byte, indicates a ligature step if less than 128, a kern step otherwise. |
| fourth | remainder |
Information from: The DVI Driver Standard, Level 0 The TUG DVI Driver Standards Committee
| Nested Class Summary | |
|---|---|
static class |
TfmLigKernCommand.Activity
This is a type-safe class to represent activity information. |
| Field Summary | |
|---|---|
static TfmLigKernCommand.Activity |
ACCESSIBLE
The value of activity field which means that this
lig/kern instruction is a part of lig/kern program for some
character. |
static TfmLigKernCommand.Activity |
PASSTHROUGH
The value of activity field which means that this is
restart instruction or the boundary information which was processed. |
static TfmLigKernCommand.Activity |
UNREACHABLE
The value of activity field which means that this
lig/kern instruction is not a part of lig/kern program for any
character. |
| Constructor Summary | |
|---|---|
TfmLigKernCommand(RandomAccessR rar,
int id)
Create a new object. |
|
| Method Summary | |
|---|---|
TfmLigKernCommand.Activity |
getActivity()
Returns the activity. |
int |
getLkid()
Returns the lkid. |
short |
getNextchar()
Returns the nextchar. |
short |
getOpbyte()
Returns the opbyte. |
short |
getRemainder()
Returns the remainder. |
short |
getSkipbyte()
Returns the skipbyte. |
int |
kernIndex()
Gives the index to the kern table from tfm file for kerning instruction. |
boolean |
leaveLeft()
Tells whether the current character should be left in place when executing this ligature instructions. |
boolean |
leaveRight()
Tells whether the next character should be left in place when executing this ligature instructions. |
short |
ligChar()
Gives the code of charcter which should be inserted between the current and the next characters when executing this ligature instruction. |
void |
makeStop()
Forces this LigKern to be the last instruction in a lig/kern program. |
boolean |
meansBoundary()
Tells whether this LigKern contains information about boundary. |
boolean |
meansKern()
Tells whether this LigKern is a kerning instruction. |
boolean |
meansRestart()
Tells whether this LigKern redirects the actual start of a lig/kern program to some other instruction (it must be also the first instruction of some lig/kern program). |
boolean |
meansStop()
Tells whether this LigKern is the last instruction of a lig/kern program. |
short |
nextChar()
Gives the code of the character which must be next to the current character if this instruction has to be activated. |
int |
nextIndex(int pos)
Tells the position of the next lig/kern program instruction given the position of this LigKern in the lig/kern table. |
short |
opbyte()
Gives the unsigned value of the opbyte. |
short |
remainder()
Gives the unsigned value of uninterpreted remainder. |
int |
restartIndex()
Gives actual starting index of the lig/kern program for restart instruction. |
void |
setActivity(TfmLigKernCommand.Activity act)
Set the new value for actifity. |
void |
setLigChar(short c)
Forces the ligChar to have particular value. |
void |
setNextChar(int c)
Forces this LigKern to have particular value of nextchar. |
short |
skipbyte()
Gives the unsigned value of the skipbyte. |
byte |
stepOver()
Tells how many character should be skipped over after executing this ligature instruction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TfmLigKernCommand.Activity ACCESSIBLE
activity field which means that this
lig/kern instruction is a part of lig/kern program for some
character.
public static final TfmLigKernCommand.Activity PASSTHROUGH
activity field which means that this is
restart instruction or the boundary information which was processed.
public static final TfmLigKernCommand.Activity UNREACHABLE
activity field which means that this
lig/kern instruction is not a part of lig/kern program for any
character.
| Constructor Detail |
|---|
public TfmLigKernCommand(RandomAccessR rar,
int id)
throws java.io.IOException
rar - the inputid - the id
java.io.IOException - if an IO-error occurs.| Method Detail |
|---|
public TfmLigKernCommand.Activity getActivity()
public int getLkid()
public short getNextchar()
public short getOpbyte()
public short getRemainder()
public short getSkipbyte()
public int kernIndex()
kernTable.public boolean leaveLeft()
true if the current character should be left.public boolean leaveRight()
true if the next character should be left.public short ligChar()
public void makeStop()
public boolean meansBoundary()
true if it contains boundary information.public boolean meansKern()
true for kerning instruction.public boolean meansRestart()
true if it is a restart instruction.public boolean meansStop()
true if this is the last
instruction of a lig/kern program.public short nextChar()
public int nextIndex(int pos)
pos - the pos
ligAuxTab
of the next lig/kern instruction.public short opbyte()
public short remainder()
public int restartIndex()
public void setActivity(TfmLigKernCommand.Activity act)
act - The activity to set.public void setLigChar(short c)
c - the forced value of ligChar.public void setNextChar(int c)
c - the forced value of >nextchar.public short skipbyte()
public byte stepOver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||