|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.font.type.tfm.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 | |
static de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag |
EXT_TAG
ext_tag: character is extensible |
static de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag |
LIG_TAG
lig_tag: character has a ligature/kerning program |
static de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag |
LIST_TAG
list_tag: character has a successor in a charlist |
static de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag |
NO_TAG
no_tag: vanilla character |
static short |
NOCHARCODE
Symbolic constant for nonexistent character code |
static int |
Symbolic constant for index which is not valid |
Constructor Summary | |
TFMCharInfoWord(RandomAccessR rar,
int id)
Create a new object |
Method Summary | |
void |
addGlyph(org.jdom.Element glyph)
Add glyph to the element |
boolean |
exists()
Test, if the character exists in the font. |
short |
getBc()
Returns the bc. |
short |
getBot()
Returns the bot. |
int |
getCharid()
Returns the charid. |
TFMFixWord |
getDepth()
Returns the depth. |
short |
getDepthindex()
Returns the depthindex. |
java.lang.String |
getGlyphname()
Returns the glyphname. |
TFMFixWord |
getHeight()
Returns the height. |
short |
getHeightindex()
Returns the heightindex. |
TFMFixWord |
getItalic()
Returns the italic. |
short |
getItalicindex()
Returns the italicindex. |
int |
getLigkernstart()
Returns the ligkernstart. |
short |
getMid()
Returns the mid. |
short |
getNextchar()
Returns the nextchar. |
short |
getRemainder()
Returns the remainder. |
short |
getRep()
Returns the rep. |
de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag |
getTag()
Returns the tag. |
short |
getTagNumber()
Returns the tag as number. |
short |
getTop()
Returns the top. |
TFMFixWord |
getWidth()
Returns the width. |
short |
getWidthindex()
Returns the widthindex. |
void |
resetTag()
Resets the tag field to NOTAG (zero) value. |
void |
setBc(short 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 glyphname. |
void |
setHeight(TFMFixWord aheight)
Set the height. |
void |
setItalic(TFMFixWord aitalic)
Set the italic |
void |
setLigkernstart(int ligkerns)
Set the ligkernstart. |
void |
setLigKernTable(TFMLigKern[] lk)
Set the ligKernTable |
void |
setMid(short amid)
Set the mid. |
void |
setNextchar(short anextchar)
Set the nextchar. |
void |
setRep(short arep)
Set the rep. |
void |
setTop(short atop)
Set the top. |
void |
setWidth(TFMFixWord awidth)
Set the width |
void |
toPL(PlWriter out)
Print all information (jn PL-format) to the writer. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag NO_TAG
public static final de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag LIG_TAG
public static final de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag LIST_TAG
public static final de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag EXT_TAG
public static final short NOCHARCODE
public static final int
Constructor Detail |
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 int getCharid()
public short getDepthindex()
public short getHeightindex()
public short getItalicindex()
public short getRemainder()
public short getTagNumber()
public de.dante.extex.font.type.tfm.TFMCharInfoWord.Tag getTag()
public short getWidthindex()
public int getLigkernstart()
public void setLigkernstart(int ligkerns)
ligkerns
- The ligkernstart to set.public short getBot()
public void setBot(short abot)
abot
- The bot to set.public TFMFixWord getDepth()
public void setDepth(TFMFixWord adepth)
adepth
- The depth to set.public TFMFixWord getHeight()
public void setHeight(TFMFixWord aheight)
aheight
- The height to set.public TFMFixWord getItalic()
public void setItalic(TFMFixWord aitalic)
aitalic
- The italic to set.public short getMid()
public void setMid(short amid)
amid
- The mid to set.public short getNextchar()
public void setNextchar(short anextchar)
anextchar
- The nextchar to set.public short getRep()
public void setRep(short arep)
arep
- The rep to set.public short getTop()
public void setTop(short atop)
atop
- The top to set.public TFMFixWord getWidth()
public void setWidth(TFMFixWord awidth)
awidth
- The width to set.public boolean exists()
true
if the character exists.public void resetTag()
public void setLigKernTable(TFMLigKern[] lk)
lk
- The ligKernTable to set.public java.lang.String getGlyphname()
public void setGlyphname(java.lang.String gn)
gn
- The glyphname to set.public void setBc(short abc)
abc
- The bc to set.public void toPL(PlWriter out) throws java.io.IOException
PlFormat
toPL
in interface PlFormat
out
- the plwriter
java.io.IOException
- if an IO-error occurs.PlFormat.toPL(de.dante.extex.font.type.PlWriter)
public void addGlyph(org.jdom.Element glyph)
glyph
- the elementpublic short getBc()
public void writeXML(XMLStreamWriter writer) throws java.io.IOException
XMLWriterConvertible
writeXML
in interface XMLWriterConvertible
writer
- the XML-Writer
java.io.IOException
- if an IO-error occurs.XMLWriterConvertible.writeXML(de.dante.util.xml.XMLStreamWriter)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |