org.extex.font.format.tfm
Class TfmHeaderLengths

java.lang.Object
  extended by org.extex.font.format.tfm.TfmHeaderLengths
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OfmHeaderLengths

public class TfmHeaderLengths
extends java.lang.Object
implements 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)

name description
lf length of the entire file, in words
lh length of the header data, in words
bc smallest character code in the font
ec largest character code in the font
nw number of words in the width table
nh number of words in the height table
nd number of words in the depth table
ni number of words in the italic correction table
nl number of words in the lig/kern table
nk number of words in the kern table
ne number of words in the extensible character table
np number of font parameter words

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

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

Field Summary
protected  int bc
          smallest character code in the font.
protected  int cc
          number of character.
protected  int ec
          largest character code in the font.
protected  int lf
          length of the entire file.
protected  int lh
          length of the header data.
protected  int nd
          number of words in the depth table.
protected  int ne
          number of words in the extensible character table.
protected  int nh
          number of words in the height table.
protected  int ni
          number of words in the italic correction table.
protected  int nk
          number of words in the kern table.
protected  int nl
          number of words in the lig/kern table.
protected  int np
          number of font parameter words.
protected  int nw
          number of words in the width table.
 
Constructor Summary
protected TfmHeaderLengths()
          Creates a new object.
  TfmHeaderLengths(RandomAccessR rar)
          Create a new object.
 
Method Summary
 int getBc()
          Returns the bc.
 int getCc()
          Returns the cc.
 int getEc()
          Returns the ec.
 int getLf()
          Returns the lf.
 int getLh()
          Returns the lh.
 int getNd()
          Returns the nd.
 int getNe()
          Returns the ne.
 int getNh()
          Returns the nh.
 int getNi()
          Returns the ni.
 int getNk()
          Returns the nk.
 int getNl()
          Returns the nl.
 int getNp()
          Returns the np.
 int getNw()
          Returns the nw.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bc

protected int bc
smallest character code in the font.


cc

protected int cc
number of character.


ec

protected int ec
largest character code in the font.


lf

protected int lf
length of the entire file.


lh

protected int lh
length of the header data.


nd

protected int nd
number of words in the depth table.


ne

protected int ne
number of words in the extensible character table.


nh

protected int nh
number of words in the height table.


ni

protected int ni
number of words in the italic correction table.


nk

protected int nk
number of words in the kern table.


nl

protected int nl
number of words in the lig/kern table.


np

protected int np
number of font parameter words.


nw

protected int nw
number of words in the width table.

Constructor Detail

TfmHeaderLengths

protected TfmHeaderLengths()
Creates a new object. Only for OfmHeaderLengths


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 int getBc()
Returns the bc.

Returns:
Returns the bc.

getCc

public int getCc()
Returns the cc.

Returns:
Returns the cc.

getEc

public int getEc()
Returns the ec.

Returns:
Returns the ec.

getLf

public int getLf()
Returns the lf.

Returns:
Returns the lf.

getLh

public int getLh()
Returns the lh.

Returns:
Returns the lh.

getNd

public int getNd()
Returns the nd.

Returns:
Returns the nd.

getNe

public int getNe()
Returns the ne.

Returns:
Returns the ne.

getNh

public int getNh()
Returns the nh.

Returns:
Returns the nh.

getNi

public int getNi()
Returns the ni.

Returns:
Returns the ni.

getNk

public int getNk()
Returns the nk.

Returns:
Returns the nk.

getNl

public int getNl()
Returns the nl.

Returns:
Returns the nl.

getNp

public int getNp()
Returns the np.

Returns:
Returns the np.

getNw

public int getNw()
Returns the nw.

Returns:
Returns the nw.