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

java.lang.Object
  extended byde.dante.extex.font.type.tfm.ModifiableFountTFM
All Implemented Interfaces:
Fount, InternalFount, ModifiableFount, java.io.Serializable

public class ModifiableFountTFM
extends java.lang.Object
implements ModifiableFount, java.io.Serializable

Adapter for a ModifiableFount for TFM.

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

Field Summary
static int DEFAULTUNITSPEREM
          Default unitsperem
 
Constructor Summary
ModifiableFountTFM(FountKey fk, TFMFont tfmfont)
          Create a new object.
 
Method Summary
 FixedDimen getActualSize()
          Returns the actual size.
 BoundingBox getBoundingBox()
          Returns the BoundingBox.
 int getCheckSum()
          Returns the check sum.
 FixedDimen getDesignSize()
          Returns the design size.
 FixedDimen getEm()
          Return the em size of the font.
 FixedDimen getEx()
          Return the ex size of the font.
 FontByteArray getFontByteArray()
          Returns the byte array for the external file e.g.
 FixedDimen getFontDimen(java.lang.String key)
          Return font dimen size with a key.
 FountKey getFontKey()
          Returns the key for the font.
 java.lang.String getFontName()
          Return the font name.
 Glyph getGlyph(UnicodeChar c)
          Return the Glyph of a UnicodeChar, or null, if the character is not defined.
 FixedGlue getLetterSpacing()
          Return the letter spacing
 java.lang.String getProperty(java.lang.String key)
          Return the font-property
 FixedGlue getSpace()
          Return the width of space character.
 void setFontDimen(java.lang.String key, Dimen value)
          Setter for the font dimen register.
 void setProperty(java.lang.String key, java.lang.String value)
          Setter for the font-property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULTUNITSPEREM

public static final int DEFAULTUNITSPEREM
Default unitsperem

See Also:
Constant Field Values
Constructor Detail

ModifiableFountTFM

public ModifiableFountTFM(FountKey fk,
                          TFMFont tfmfont)
Create a new object.

Parameters:
fk - the fount key
tfmfont - the tfm font
Method Detail

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Description copied from interface: ModifiableFount
Setter for the font-property

Specified by:
setProperty in interface ModifiableFount
Parameters:
key - the key
value - the value for the key
See Also:
ModifiableFount.setProperty(java.lang.String, java.lang.String)

setFontDimen

public void setFontDimen(java.lang.String key,
                         Dimen value)
Description copied from interface: ModifiableFount
Setter for the font dimen register.

Specified by:
setFontDimen in interface ModifiableFount
Parameters:
key - the key
value - the value for the key
See Also:
ModifiableFount.setFontDimen(java.lang.String, de.dante.extex.interpreter.type.dimen.Dimen)

getGlyph

public Glyph getGlyph(UnicodeChar c)
Description copied from interface: InternalFount
Return the Glyph of a UnicodeChar, or null, if the character is not defined.

Specified by:
getGlyph in interface InternalFount
Parameters:
c - the Unicode char
Returns:
the Glyph
See Also:
de.dante.extex.font.type.Fount#getGlyph(de.dante.util.UnicodeChar)

getSpace

public FixedGlue getSpace()
Description copied from interface: Fount
Return the width of space character.

Specified by:
getSpace in interface Fount
Returns:
the width of the space character
See Also:
Fount.getSpace()

getEm

public FixedDimen getEm()
Description copied from interface: Fount
Return the em size of the font.

Specified by:
getEm in interface Fount
Returns:
em-size
See Also:
Fount.getEm()

getEx

public FixedDimen getEx()
Description copied from interface: Fount
Return the ex size of the font.

Specified by:
getEx in interface Fount
Returns:
ex-size
See Also:
Fount.getEx()

getFontDimen

public FixedDimen getFontDimen(java.lang.String key)
Description copied from interface: Fount
Return font dimen size with a key.

Specified by:
getFontDimen in interface Fount
Parameters:
key - the key
Returns:
the value for the key
See Also:
Fount.getFontDimen(java.lang.String)

getProperty

public java.lang.String getProperty(java.lang.String key)
Description copied from interface: Fount
Return the font-property

Specified by:
getProperty in interface Fount
Parameters:
key - the key
Returns:
the value for the key
See Also:
Fount.getProperty(java.lang.String)

getFontName

public java.lang.String getFontName()
Description copied from interface: Fount
Return the font name.

Specified by:
getFontName in interface Fount
Returns:
the font name
See Also:
Fount.getFontName()

getCheckSum

public int getCheckSum()
Description copied from interface: Fount
Returns the check sum.

Specified by:
getCheckSum in interface Fount
Returns:
the check sum
See Also:
Fount.getCheckSum()

getBoundingBox

public BoundingBox getBoundingBox()
Description copied from interface: Fount
Returns the BoundingBox.

Specified by:
getBoundingBox in interface Fount
Returns:
the BoundingBox, or null, if it does not exists
See Also:
Fount.getBoundingBox()

getLetterSpacing

public FixedGlue getLetterSpacing()
Description copied from interface: Fount
Return the letter spacing

Specified by:
getLetterSpacing in interface Fount
Returns:
the letter spacing
See Also:
Fount.getLetterSpacing()

getDesignSize

public FixedDimen getDesignSize()
Description copied from interface: Fount
Returns the design size.

Specified by:
getDesignSize in interface Fount
Returns:
the design size.
See Also:
Fount.getDesignSize()

getActualSize

public FixedDimen getActualSize()
Description copied from interface: Fount
Returns the actual size.

Specified by:
getActualSize in interface Fount
Returns:
Returns the actual size.
See Also:
Fount.getActualSize()

getFontKey

public FountKey getFontKey()
Description copied from interface: Fount
Returns the key for the font.

Specified by:
getFontKey in interface Fount
Returns:
Returns the key for the font.
See Also:
Fount.getFontKey()

getFontByteArray

public FontByteArray getFontByteArray()
Description copied from interface: Fount
Returns the byte array for the external file e.g. cmr12.pfb.

Specified by:
getFontByteArray in interface Fount
Returns:
Returns the byte array for the external file e.g. cmr12.pfb
See Also:
Fount.getFontByteArray()