de.dante.extex.font.type.afm
Class AfmFont

java.lang.Object
  extended byde.dante.extex.font.type.afm.AfmFont
All Implemented Interfaces:
EFMWriterConvertible, java.io.Serializable, XMLWriterConvertible

public class AfmFont
extends java.lang.Object
implements java.io.Serializable, XMLWriterConvertible, EFMWriterConvertible

This class read a AFM-file and create a efm-element.

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

Constructor Summary
AfmFont(java.io.InputStream afmin, java.lang.String fname)
          init
 
Method Summary
 java.lang.String getFontname()
          Returns the fontname.
 void writeEFM(XMLStreamWriter writer)
          Write the efm data to a XMLStreamWriter.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfmFont

public AfmFont(java.io.InputStream afmin,
               java.lang.String fname)
        throws java.io.IOException,
               FontException
init

Parameters:
afmin - the input
fname - the font name
Throws:
java.io.IOException - if an IO-error occurs.
FontException - if an font error occurs.
Method Detail

writeEFM

public void writeEFM(XMLStreamWriter writer)
              throws java.io.IOException
Description copied from interface: EFMWriterConvertible
Write the efm data to a XMLStreamWriter.

Specified by:
writeEFM in interface EFMWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
EFMWriterConvertible.writeEFM(de.dante.util.xml.XMLStreamWriter)

getFontname

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

Returns:
Returns the fontname.

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Description copied from interface: XMLWriterConvertible
Write the data to a XMLStreamWriter.

Specified by:
writeXML in interface XMLWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML( de.dante.util.xml.XMLStreamWriter)