org.extex.font.format.tfm
Class TfmHeaderArray

java.lang.Object
  extended by org.extex.font.format.tfm.TfmHeaderArray
All Implemented Interfaces:
java.io.Serializable

public class TfmHeaderArray
extends java.lang.Object
implements java.io.Serializable

Class for TFM header information.

header : array [0 .. (lh-1)] of stuff

header[0] a 32-bit check sum
header[1] a fix word containing the design size of the font, in units of TEX points (7227 TEX points =254 cm)
header[2..11] if present, contains 40 bytes that identify the character coding scheme.
header[12..16] if present, contains 20 bytes that name the font family.
header[17] if present, contains a first byte called the seven_bit_safe_flag, then two bytes that are ignored, and a fourth byte called the face.
header[18..(lh-1)] might also be present: the individual words are simply called header[18], header[19], etc., at the moment.

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

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

Field Summary
static int HEADER_REST_SIZE
          header[18..]
 
Constructor Summary
TfmHeaderArray(RandomAccessR rar, int lh)
          Create a new object
 
Method Summary
 int getChecksum()
          Returns the checksum.
 java.lang.String getCodingscheme()
          Returns the codingscheme.
 TfmFixWord getDesignsize()
          Returns the designsize.
 int getFace()
          Returns the face.
 java.lang.String getFontfamily()
          Returns the fontfamily.
 TfmFontType getFontType()
          Returns the fontype.
 int[] getHeaderrest()
          Returns the headerrest.
 int getXeroxfacecode()
          Getter for xeroxfacecode.
 boolean isSevenBitSafe()
          Returns the sevenBitSafe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_REST_SIZE

public static final int HEADER_REST_SIZE
header[18..]

See Also:
Constant Field Values
Constructor Detail

TfmHeaderArray

public TfmHeaderArray(RandomAccessR rar,
                      int lh)
               throws java.io.IOException
Create a new object

Parameters:
rar - the input
lh - length of the header data
Throws:
java.io.IOException - if an IO-error occurs.
Method Detail

getChecksum

public int getChecksum()
Returns the checksum.

Returns:
Returns the checksum.

getCodingscheme

public java.lang.String getCodingscheme()
Returns the codingscheme.

Returns:
Returns the codingscheme.

getDesignsize

public TfmFixWord getDesignsize()
Returns the designsize.

Returns:
Returns the designsize.

getFace

public int getFace()
Returns the face.

Returns:
Returns the face.

getFontfamily

public java.lang.String getFontfamily()
Returns the fontfamily.

Returns:
Returns the fontfamily.

getFontType

public TfmFontType getFontType()
Returns the fontype.

Returns:
Returns the fontype.

getHeaderrest

public int[] getHeaderrest()
Returns the headerrest.

Returns:
Returns the headerrest.

getXeroxfacecode

public int getXeroxfacecode()
Getter for xeroxfacecode.

Returns:
Returns the xeroxfacecode.

isSevenBitSafe

public boolean isSevenBitSafe()
Returns the sevenBitSafe.

Returns:
Returns the sevenBitSafe.