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

java.lang.Object
  extended byde.dante.extex.font.type.tfm.TFMHeaderLengths
All Implemented Interfaces:
java.io.Serializable, XMLWriterConvertible

public class TFMHeaderLengths
extends java.lang.Object
implements XMLWriterConvertible, java.io.Serializable

Class for TFM header length table.

The first 24 bytes of a TFM file contain the lengths of the various subsequent portions of the file. (12 x 16-bit interger) or (6 words x 32 bit)

namedescription
lflength of the entire file, in words
lhlength of the header data, in words
bcsmallest character code in the font
eclargest character code in the font
nwnumber of words in the width table
nhnumber of words in the height table
ndnumber of words in the depth table
ninumber of words in the italic correction table
nlnumber of words in the lig/kern table
nknumber of words in the kern table
nenumber of words in the extensible character table
npnumber of font parameter words

Information from: The DVI Driver Standard, Level 0 The TUG DVI Driver Standards Committee

Version:
$Revision: 1.6 $
Author:
Michael Niedermair
See Also:
Serialized Form

Constructor Summary
TFMHeaderLengths(RandomAccessR rar)
          Create a new object
 
Method Summary
 short getBc()
          Returns the bc.
 int getCc()
          Returns the cc.
 short getEc()
          Returns the ec.
 short getLf()
          Returns the lf.
 short getLh()
          Returns the lh.
 short getNd()
          Returns the nd.
 short getNe()
          Returns the ne.
 short getNh()
          Returns the nh.
 short getNi()
          Returns the ni.
 short getNk()
          Returns the nk.
 short getNl()
          Returns the nl.
 short getNp()
          Returns the np.
 short getNw()
          Returns the nw.
 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
 

Constructor Detail

TFMHeaderLengths

public TFMHeaderLengths(RandomAccessR rar)
                 throws java.io.IOException
Create a new object

Parameters:
rar - the input
Throws:
java.io.IOException - if an IO-error occurs.
Method Detail

getBc

public short getBc()
Returns the bc.

Returns:
Returns the bc.

getCc

public int getCc()
Returns the cc.

Returns:
Returns the cc.

getEc

public short getEc()
Returns the ec.

Returns:
Returns the ec.

getLf

public short getLf()
Returns the lf.

Returns:
Returns the lf.

getLh

public short getLh()
Returns the lh.

Returns:
Returns the lh.

getNd

public short getNd()
Returns the nd.

Returns:
Returns the nd.

getNe

public short getNe()
Returns the ne.

Returns:
Returns the ne.

getNh

public short getNh()
Returns the nh.

Returns:
Returns the nh.

getNi

public short getNi()
Returns the ni.

Returns:
Returns the ni.

getNk

public short getNk()
Returns the nk.

Returns:
Returns the nk.

getNl

public short getNl()
Returns the nl.

Returns:
Returns the nl.

getNp

public short getNp()
Returns the np.

Returns:
Returns the np.

getNw

public short getNw()
Returns the nw.

Returns:
Returns the nw.

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Description copied from interface: XMLWriterConvertible
Write the data to a XMLStreamWriter.

Specified by:
writeXML in interface XMLWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML(de.dante.util.xml.XMLStreamWriter)