|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.tfm.TfmCharInfoWord
public class TfmCharInfoWord
Class for TFM char info word.
Each char_info_word contains six fields packed into four bytes as follows.
| byte | description |
| first | width_index (8 bits) |
| second | height_index (4 bits) times 16, plus depth_index (4 bits) |
| third | italic_index (6 bits) times 4, plus tag (2 bits) |
| fourth | remainder (8 bits) |
The tag field has four values that explain how to interpret the remainder field.
| tag | description |
| 0 | no_tag: means that remainder is unused. |
| 1 | lig_tag: means that this character has a ligature/kerning program starting at lig_kern[remainder]. |
| 2 | list_tag: means that this character is part of a chain of characters of ascending sizes, and not the largest in the chain. The remainder field gives the character code of the next larger character. |
| 3 | ext_tag: means that this character code represents an extensible character, i.e., a character that is built up of smaller pieces so that it can be made arbitrarily large. The pieces are specified in exten[remainder]. |
Information from: The DVI Driver Standard, Level 0 The TUG DVI Driver Standards Committee
| Field Summary | |
|---|---|
protected int |
charid
the char id. |
static org.extex.font.format.tfm.TfmCharInfoWord.Tag |
EXT_TAG
ext_tag: character is extensible. |
static org.extex.font.format.tfm.TfmCharInfoWord.Tag |
LIG_TAG
lig_tag: character has a ligature/kerning program. |
static org.extex.font.format.tfm.TfmCharInfoWord.Tag |
LIST_TAG
list_tag: character has a successor in a charlist. |
static org.extex.font.format.tfm.TfmCharInfoWord.Tag |
NO_TAG
no_tag: vanilla character. |
static short |
NOCHARCODE
Symbolic constant for nonexistent character code. |
static int |
NOINDEX
Symbolic constant for index which is not valid. |
static int |
TAG0
no_tag: 0. |
static int |
TAG1
no_tag: 1. |
static int |
TAG2
no_tag: 2. |
static int |
TAG3
no_tag: 3. |
protected int |
widthindex
the width index. |
| Constructor Summary | |
|---|---|
protected |
TfmCharInfoWord()
Creates a new object. |
|
TfmCharInfoWord(RandomAccessR rar,
int id)
Create a new object. |
| Method Summary | |
|---|---|
void |
createLigKernMap()
Create the ligature/kerning map. |
boolean |
exists()
Test, if the character exists in the font. |
boolean |
foundEntry()
Check, if char has a entry (glyph name, top, mid, bot, rep, ligature or kern. |
int |
getBc()
Returns the bc. |
short |
getBot()
Returns the bot. |
int |
getCharid()
Returns the charid. |
TfmFixWord |
getDepth()
Returns the depth. |
short |
getDepthindex()
Returns the depth index. |
java.lang.String |
getGlyphname()
Returns the glyph name. |
TfmFixWord |
getHeight()
Returns the height. |
short |
getHeightindex()
Returns the height index. |
TfmFixWord |
getItalic()
Returns the italic. |
short |
getItalicindex()
Returns the italic index. |
TfmFixWord |
getKerning(int cp2)
Return the kerning. |
int |
getLigature(int cp2)
Return the ligature. |
int |
getLigkernstart()
Returns the ligkern start. |
TfmLigKern[] |
getLigKernTable()
Getter for ligKernTable. |
short |
getMid()
Returns the mid. |
short |
getNextchar()
Returns the next char. |
short |
getRemainder()
Returns the remainder. |
short |
getRep()
Returns the rep. |
org.extex.font.format.tfm.TfmCharInfoWord.Tag |
getTag()
Returns the tag. |
short |
getTagNumber()
Returns the tag as number. |
short |
getTop()
Returns the top. |
TfmFixWord |
getWidth()
Returns the width. |
int |
getWidthindex()
Returns the width index. |
void |
resetTag()
Resets the tag field to NOTAG (zero) value. |
void |
setBc(int abc)
Set bc. |
void |
setBot(short abot)
Set the bot. |
void |
setDepth(TfmFixWord adepth)
Det the depth. |
void |
setGlyphname(java.lang.String gn)
Set the glyph name. |
void |
setHeight(TfmFixWord aheight)
Set the height. |
void |
setItalic(TfmFixWord aitalic)
Set the italic. |
void |
setLigkernstart(int ligkerns)
Set the ligkern start. |
void |
setLigKernTable(TfmLigKern[] lk)
Set the ligKernTable. |
void |
setMid(short amid)
Set the mid. |
void |
setNextchar(short anextchar)
Set the next char. |
void |
setRep(short arep)
Set the rep. |
void |
setTop(short atop)
Set the top. |
void |
setWidth(TfmFixWord awidth)
Set the width. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.extex.font.format.tfm.TfmCharInfoWord.Tag EXT_TAG
public static final org.extex.font.format.tfm.TfmCharInfoWord.Tag LIG_TAG
public static final org.extex.font.format.tfm.TfmCharInfoWord.Tag LIST_TAG
public static final org.extex.font.format.tfm.TfmCharInfoWord.Tag NO_TAG
public static final short NOCHARCODE
public static final int NOINDEX
public static final int TAG0
public static final int TAG1
public static final int TAG2
public static final int TAG3
protected int charid
protected int widthindex
| Constructor Detail |
|---|
protected TfmCharInfoWord()
public TfmCharInfoWord(RandomAccessR rar,
int id)
throws java.io.IOException
rar - the inputid - the id
java.io.IOException - if an IO-error occurs.| Method Detail |
|---|
public void createLigKernMap()
public boolean exists()
true if the character exists.public boolean foundEntry()
public int getBc()
public short getBot()
public int getCharid()
public TfmFixWord getDepth()
public short getDepthindex()
public java.lang.String getGlyphname()
public TfmFixWord getHeight()
public short getHeightindex()
public TfmFixWord getItalic()
public short getItalicindex()
public TfmFixWord getKerning(int cp2)
cp2 - the right char. This character has to exist.
public int getLigature(int cp2)
cp2 - the right char. This character has to exist.
public int getLigkernstart()
public TfmLigKern[] getLigKernTable()
public short getMid()
public short getNextchar()
public short getRemainder()
public short getRep()
public org.extex.font.format.tfm.TfmCharInfoWord.Tag getTag()
public short getTagNumber()
public short getTop()
public TfmFixWord getWidth()
public int getWidthindex()
public void resetTag()
public void setBc(int abc)
abc - The bc to set.public void setBot(short abot)
abot - The bot to set.public void setDepth(TfmFixWord adepth)
adepth - The depth to set.public void setGlyphname(java.lang.String gn)
gn - The glyph name to set.public void setHeight(TfmFixWord aheight)
aheight - The height to set.public void setItalic(TfmFixWord aitalic)
aitalic - The italic to set.public void setLigkernstart(int ligkerns)
ligkerns - The ligkern start to set.public void setLigKernTable(TfmLigKern[] lk)
lk - The ligKernTable to set.public void setMid(short amid)
amid - The mid to set.public void setNextchar(short anextchar)
anextchar - The next char to set.public void setRep(short arep)
arep - The rep to set.public void setTop(short atop)
atop - The top to set.public void setWidth(TfmFixWord awidth)
awidth - The width to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||