de.dante.extex.font.type.efm
Class EfmReader

java.lang.Object
  extended byde.dante.extex.font.type.efm.EfmReader
All Implemented Interfaces:
java.io.Serializable

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

Reader for a efm-file.

If the type is tfm, then all dimens are fixwords!!!

TODO DTD check is missing!

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

Field Summary
static java.lang.String FONT
          Element: font
static java.lang.String FONT_CHECKSUM
          Attribute: font - checksum
static java.lang.String FONT_DEFAULT_SIZE
          Attribute: font - default-size
static java.lang.String FONT_FAMILY
          Attribute: font - fontfamily
static java.lang.String FONT_FILENAME
          Attribute: font - filename
static java.lang.String FONT_ID
          Attribute: font - id
static java.lang.String FONT_NAME
          Attribute: font - fontname
static java.lang.String FONT_SUBTYPE
          Attribute: font - subtype
static java.lang.String FONT_TYPE
          Attribute: font - type
static java.lang.String FONT_UNITS_PER_EM
          Attribute: font - units-per-em
static java.lang.String FONTDIMEN
          Element: fontdimen
static java.lang.String GLYPH
          Element: glyph
static java.lang.String GLYPH_DEPTH
          Attribut: glyph - depth
static java.lang.String GLYPH_HEIGHT
          Attribut: glyph - height
static java.lang.String GLYPH_ID
          Attribut: glyph - id
static java.lang.String GLYPH_ITALIC
          Attribut: glyph - italic
static java.lang.String GLYPH_NAME
          Attribut: glyph - name
static java.lang.String GLYPH_NUMBER
          Attribut: glyph - number
static java.lang.String GLYPH_WIDTH
          Attribut: glyph - width
static java.lang.String KERNING
          Element: kerning
static java.lang.String KERNING_CHAR
          Attribute: kerning - char
static java.lang.String KERNING_ID
          Attribute: kerning - id
static java.lang.String KERNING_SIZE
          Attribute: kerning - sizte
static java.lang.String LIGATURE
          Element: ligature
static java.lang.String LIGATURE_ID
          Attribute: ligature - id
static java.lang.String LIGATURE_LETTER
          Attribute: ligature - letter
static java.lang.String LIGATURE_LIGID
          Attribute: ligature - ligid
 
Constructor Summary
EfmReader(java.io.InputStream in)
          Create a new object.
EfmReader(java.lang.String fn)
          Create a new object.
 
Method Summary
 int getChecksum()
          Returns the checksum.
 float getDefaultsize()
          Returns the defaultsize.
 java.util.Map getDimenmap()
          Returns the dimenmap.
 java.lang.String getFilename()
          Returns the filename.
 java.lang.String getFontfamily()
          Returns the fontfamily.
 java.lang.String getFontname()
          Returns the fontname.
 java.util.Map getGlyphmap()
          Returns the glyphmap.
 java.lang.String getId()
          Returns the id.
 java.lang.String getSubtype()
          Returns the subtype.
 java.lang.String getType()
          Returns the type.
 int getUnitsperem()
          Returns the unitsperem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FONT_ID

public static final java.lang.String FONT_ID
Attribute: font - id

See Also:
Constant Field Values

FONT_TYPE

public static final java.lang.String FONT_TYPE
Attribute: font - type

See Also:
Constant Field Values

FONT_DEFAULT_SIZE

public static final java.lang.String FONT_DEFAULT_SIZE
Attribute: font - default-size

See Also:
Constant Field Values

FONT_UNITS_PER_EM

public static final java.lang.String FONT_UNITS_PER_EM
Attribute: font - units-per-em

See Also:
Constant Field Values

FONTDIMEN

public static final java.lang.String FONTDIMEN
Element: fontdimen

See Also:
Constant Field Values

FONT

public static final java.lang.String FONT
Element: font

See Also:
Constant Field Values

FONT_NAME

public static final java.lang.String FONT_NAME
Attribute: font - fontname

See Also:
Constant Field Values

FONT_FAMILY

public static final java.lang.String FONT_FAMILY
Attribute: font - fontfamily

See Also:
Constant Field Values

FONT_CHECKSUM

public static final java.lang.String FONT_CHECKSUM
Attribute: font - checksum

See Also:
Constant Field Values

FONT_SUBTYPE

public static final java.lang.String FONT_SUBTYPE
Attribute: font - subtype

See Also:
Constant Field Values

FONT_FILENAME

public static final java.lang.String FONT_FILENAME
Attribute: font - filename

See Also:
Constant Field Values

GLYPH

public static final java.lang.String GLYPH
Element: glyph

See Also:
Constant Field Values

GLYPH_ID

public static final java.lang.String GLYPH_ID
Attribut: glyph - id

See Also:
Constant Field Values

GLYPH_NUMBER

public static final java.lang.String GLYPH_NUMBER
Attribut: glyph - number

See Also:
Constant Field Values

GLYPH_NAME

public static final java.lang.String GLYPH_NAME
Attribut: glyph - name

See Also:
Constant Field Values

GLYPH_WIDTH

public static final java.lang.String GLYPH_WIDTH
Attribut: glyph - width

See Also:
Constant Field Values

GLYPH_HEIGHT

public static final java.lang.String GLYPH_HEIGHT
Attribut: glyph - height

See Also:
Constant Field Values

GLYPH_DEPTH

public static final java.lang.String GLYPH_DEPTH
Attribut: glyph - depth

See Also:
Constant Field Values

GLYPH_ITALIC

public static final java.lang.String GLYPH_ITALIC
Attribut: glyph - italic

See Also:
Constant Field Values

LIGATURE

public static final java.lang.String LIGATURE
Element: ligature

See Also:
Constant Field Values

LIGATURE_ID

public static final java.lang.String LIGATURE_ID
Attribute: ligature - id

See Also:
Constant Field Values

LIGATURE_LETTER

public static final java.lang.String LIGATURE_LETTER
Attribute: ligature - letter

See Also:
Constant Field Values

LIGATURE_LIGID

public static final java.lang.String LIGATURE_LIGID
Attribute: ligature - ligid

See Also:
Constant Field Values

KERNING

public static final java.lang.String KERNING
Element: kerning

See Also:
Constant Field Values

KERNING_ID

public static final java.lang.String KERNING_ID
Attribute: kerning - id

See Also:
Constant Field Values

KERNING_CHAR

public static final java.lang.String KERNING_CHAR
Attribute: kerning - char

See Also:
Constant Field Values

KERNING_SIZE

public static final java.lang.String KERNING_SIZE
Attribute: kerning - sizte

See Also:
Constant Field Values
Constructor Detail

EfmReader

public EfmReader(java.io.InputStream in)
          throws FontException
Create a new object.

Parameters:
in - the input
Throws:
FontException - if a font-error occurs.

EfmReader

public EfmReader(java.lang.String fn)
          throws java.io.IOException,
                 FontException
Create a new object.

Parameters:
fn - the file name
Throws:
FontException - if a font-error occurs.
java.io.IOException - if a IO-error occurs.
Method Detail

getChecksum

public int getChecksum()
Returns the checksum.

Returns:
Returns the checksum.

getDefaultsize

public float getDefaultsize()
Returns the defaultsize.

Returns:
Returns the defaultsize.

getDimenmap

public java.util.Map getDimenmap()
Returns the dimenmap.

Returns:
Returns the dimenmap.

getFilename

public java.lang.String getFilename()
Returns the filename.

Returns:
Returns the filename.

getFontfamily

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

Returns:
Returns the fontfamily.

getFontname

public java.lang.String getFontname()
Returns the fontname.

Returns:
Returns the fontname.

getGlyphmap

public java.util.Map getGlyphmap()
Returns the glyphmap.

Returns:
Returns the glyphmap.

getId

public java.lang.String getId()
Returns the id.

Returns:
Returns the id.

getSubtype

public java.lang.String getSubtype()
Returns the subtype.

Returns:
Returns the subtype.

getType

public java.lang.String getType()
Returns the type.

Returns:
Returns the type.

getUnitsperem

public int getUnitsperem()
Returns the unitsperem.

Returns:
Returns the unitsperem.