de.dante.extex.format.dvi.command
Class DviFntDef

java.lang.Object
  extended byde.dante.extex.format.dvi.command.DviCommand
      extended byde.dante.extex.format.dvi.command.DviFntDef

public class DviFntDef
extends DviCommand

DVI: fnt_def

Version:
$Revision: 1.1 $
Author:
Michael Niedermair

Field Summary
 
Fields inherited from class de.dante.extex.format.dvi.command.DviCommand
BOP_LENGTH
 
Constructor Summary
DviFntDef(int oc, int sp, int k, int c, int s, int d, java.lang.String a, java.lang.String l)
          Create a new object.
 
Method Summary
 java.lang.String getArea()
          Returns the area.
 int getChecksum()
          Returns the checksum.
 int getDesignsize()
          Returns the designsize.
 java.lang.String getFName()
          Returns the fname.
 int getFont()
          Returns the font.
 java.lang.String getName()
          Returns the name of the command.
 int getScale()
          Returns the scale.
 Dimen getScaleAsDimen()
          Returns the scale as Dimen.
 int getScaled(int mag)
          Calculate the scaled from a font (with times 1000).
 Count getScaledAsCount(int mag)
          Returns the scaled from a font as Count.
 
Methods inherited from class de.dante.extex.format.dvi.command.DviCommand
getFntDefs, getNextCommand, getOpcode, getPost, getPre, getStartPointer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DviFntDef

public DviFntDef(int oc,
                 int sp,
                 int k,
                 int c,
                 int s,
                 int d,
                 java.lang.String a,
                 java.lang.String l)
Create a new object.

Parameters:
oc - the opcode
sp - the start pointer
k - the font (number)
c - the checksum
s - the scalefactor
d - the designsize
a - the area
l - the name
Method Detail

getArea

public java.lang.String getArea()
Returns the area.

Returns:
Returns the area.

getChecksum

public int getChecksum()
Returns the checksum.

Returns:
Returns the checksum.

getDesignsize

public int getDesignsize()
Returns the designsize.

Returns:
Returns the designsize.

getFont

public int getFont()
Returns the font.

Returns:
Returns the font.

getFName

public java.lang.String getFName()
Returns the fname.

Returns:
Returns the fname.

getScale

public int getScale()
Returns the scale.

Returns:
Returns the scale.

getScaleAsDimen

public Dimen getScaleAsDimen()
Returns the scale as Dimen.

Returns:
Returns the scale as Dimen.

getScaled

public int getScaled(int mag)
Calculate the scaled from a font (with times 1000).

Parameters:
mag - the maginification
Returns:
Returns the scaled.

getScaledAsCount

public Count getScaledAsCount(int mag)
Returns the scaled from a font as Count.

Parameters:
mag - the maginification
Returns:
Returns the scaled from a font as Count.

getName

public java.lang.String getName()
Description copied from class: DviCommand
Returns the name of the command.

Specified by:
getName in class DviCommand
Returns:
Returns the name of the command.
See Also:
DviCommand.getName()