|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.tfm.TfmCharInfoArray
public class TfmCharInfoArray
Class for TFM char info.
Each character has one 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) |
Information from: The DVI Driver Standard, Level 0 The TUG DVI Driver Standards Committee
| Field Summary | |
|---|---|
protected int |
bc
smallest character code in the font. |
| Constructor Summary | |
|---|---|
protected |
TfmCharInfoArray()
Creates a new object. |
|
TfmCharInfoArray(RandomAccessR rar,
int cc)
Create a new object. |
| Method Summary | |
|---|---|
void |
createCharTable(TfmWidthArray widtha,
TfmHeightArray heighta,
TfmDepthArray deptha,
TfmItalicArray italica,
TfmExtenArray extena,
int abc,
TfmLigKern[] lk)
Create the char table. |
void |
createLigKernMap()
Create the ligature/kerning map. |
int |
getBc()
Returns the bc. |
TfmCharInfoWord[] |
getCharinfoword()
Returns the charinfoword. |
TfmCharInfoWord |
getCharInfoWord(int i)
Returns the charinfoword for the character. |
TfmDepthArray |
getDepth()
Returns the depth. |
TfmHeightArray |
getHeight()
Returns the height. |
TfmItalicArray |
getItalic()
Returns the italic. |
TfmWidthArray |
getWidth()
Returns the width. |
void |
setEncodingTable(java.lang.String[] et)
Set the encdoing table. |
protected TfmFixWord |
takeDimen(TfmFixWord[] table,
int i,
int pos)
Gets referenced character dimension from apropriate table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int bc
| Constructor Detail |
|---|
protected TfmCharInfoArray()
public TfmCharInfoArray(RandomAccessR rar,
int cc)
throws java.io.IOException
rar - the inputcc - number of character
java.io.IOException - if an IO-error occurs.| Method Detail |
|---|
public void createCharTable(TfmWidthArray widtha,
TfmHeightArray heighta,
TfmDepthArray deptha,
TfmItalicArray italica,
TfmExtenArray extena,
int abc,
TfmLigKern[] lk)
widtha - the width tableheighta - the height tabledeptha - the depth tableitalica - the italic tableextena - the exten tableabc - the bclk - the ligKernTablepublic void createLigKernMap()
public int getBc()
public TfmCharInfoWord[] getCharinfoword()
public TfmCharInfoWord getCharInfoWord(int i)
null will be returned.
i - the position of the character
public TfmDepthArray getDepth()
public TfmHeightArray getHeight()
public TfmItalicArray getItalic()
public TfmWidthArray getWidth()
public void setEncodingTable(java.lang.String[] et)
et - the encoding table
protected TfmFixWord takeDimen(TfmFixWord[] table,
int i,
int pos)
table - referenced table of dimensions.i - referenced index to the dimension table.pos - the position of character in charTable for
error messages.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||