org.extex.font.format.afm
Class AfmHeader

java.lang.Object
  extended by org.extex.font.format.afm.AfmHeader
All Implemented Interfaces:
XMLWriterConvertible

public class AfmHeader
extends java.lang.Object
implements XMLWriterConvertible

AFM-Header.

Version:
$Revision: 5622 $
Author:
Michael Niedermair

Field Summary
static float NOTINIT
          not init.
 
Constructor Summary
AfmHeader()
          Create a new object.
 
Method Summary
 void addComment(java.lang.String com)
          Add a comment to the string.
 void addNotice(java.lang.String not)
          Add a notice to the string.
 float getAscender()
          Returns the ascender.
 float getCapheight()
          Returns the capheight.
 java.lang.String getCharacterset()
          Returns the characterset.
 java.lang.String getComment()
          Getter for comment.
 float getDescender()
          Returns the descender.
 java.lang.String getEncodingscheme()
          Returns the encodingscheme.
 java.lang.String getFamilyname()
          Returns the familyname.
 java.lang.String getFontname()
          Returns the fontname.
 java.lang.String getFullname()
          Returns the fullname.
 float getItalicangle()
          Returns the italicangle.
 float getLlx()
          Returns the llx.
 float getLly()
          Returns the lly.
 java.lang.String getNotice()
          Getter for notice.
 float getStdhw()
          Returns the stdhw.
 float getStdvw()
          Returns the stdvw.
 float getUnderlineposition()
          Returns the underlineposition.
 float getUnderlinethickness()
          Returns the underlinethickness.
 float getUrx()
          Returns the urx.
 float getUry()
          Returns the ury.
 java.lang.String getWeight()
          Returns the weight.
 float getXheight()
          Returns the xheight.
 boolean isFixedpitch()
          Returns the isfixedpitch.
 boolean isIsfixedpitch()
          Getter for isfixedpitch.
 void setAscender(float a)
          Set the ascender.
 void setCapheight(float height)
          Set the capheight.
 void setCharacterset(java.lang.String cs)
          Set the characterset.
 void setComment(java.lang.String comment)
          Setter for comment.
 void setDescender(float d)
          Set the desender.
 void setEncodingscheme(java.lang.String encoding)
          Set the encodingscheme.
 void setFamilyname(java.lang.String fname)
          Set the familyname.
 void setFixedpitch(boolean fixedpitch)
          Set the isfixedpitch.
 void setFontname(java.lang.String fname)
          Set the fontname.
 void setFullname(java.lang.String fname)
          Set the fullname.
 void setIsfixedpitch(boolean isfixedpitch)
          Setter for isfixedpitch.
 void setItalicangle(float i)
          Set the italicangle.
 void setLlx(float x)
          Set the llx.
 void setLly(float y)
          Set the lly.
 void setNotice(java.lang.String notice)
          Setter for notice.
 void setStdhw(float hw)
          Set the stdhw.
 void setStdvw(float vw)
          Set the stdvw.
 void setUnderlineposition(float position)
          Set the underlineposition.
 void setUnderlinethickness(float thickness)
          Set the thickness.
 void setUrx(float x)
          Set the urx.
 void setUry(float y)
          Set the ury.
 void setWeight(java.lang.String w)
          Set the weight.
 void setXheight(float x)
          Set the xheight.
 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
 

Field Detail

NOTINIT

public static final float NOTINIT
not init.

See Also:
Constant Field Values
Constructor Detail

AfmHeader

public AfmHeader()
Create a new object.

Method Detail

addComment

public void addComment(java.lang.String com)
Add a comment to the string.

Parameters:
com - The comment to add.

addNotice

public void addNotice(java.lang.String not)
Add a notice to the string.

Parameters:
not - The notice to add.

getAscender

public float getAscender()
Returns the ascender.

Returns:
Returns the ascender.

getCapheight

public float getCapheight()
Returns the capheight.

Returns:
Returns the capheight.

getCharacterset

public java.lang.String getCharacterset()
Returns the characterset.

Returns:
Returns the characterset.

getComment

public java.lang.String getComment()
Getter for comment.

Returns:
the comment

getDescender

public float getDescender()
Returns the descender.

Returns:
Returns the descender.

getEncodingscheme

public java.lang.String getEncodingscheme()
Returns the encodingscheme.

Returns:
Returns the encodingscheme.

getFamilyname

public java.lang.String getFamilyname()
Returns the familyname.

Returns:
Returns the familyname.

getFontname

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

Returns:
Returns the fontname.

getFullname

public java.lang.String getFullname()
Returns the fullname.

Returns:
Returns the fullname.

getItalicangle

public float getItalicangle()
Returns the italicangle.

Returns:
Returns the italicangle.

getLlx

public float getLlx()
Returns the llx.

Returns:
Returns the llx.

getLly

public float getLly()
Returns the lly.

Returns:
Returns the lly.

getNotice

public java.lang.String getNotice()
Getter for notice.

Returns:
the notice

getStdhw

public float getStdhw()
Returns the stdhw.

Returns:
Returns the stdhw.

getStdvw

public float getStdvw()
Returns the stdvw.

Returns:
Returns the stdvw.

getUnderlineposition

public float getUnderlineposition()
Returns the underlineposition.

Returns:
Returns the underlineposition.

getUnderlinethickness

public float getUnderlinethickness()
Returns the underlinethickness.

Returns:
Returns the underlinethickness.

getUrx

public float getUrx()
Returns the urx.

Returns:
Returns the urx.

getUry

public float getUry()
Returns the ury.

Returns:
Returns the ury.

getWeight

public java.lang.String getWeight()
Returns the weight.

Returns:
Returns the weight.

getXheight

public float getXheight()
Returns the xheight.

Returns:
Returns the xheight.

isFixedpitch

public boolean isFixedpitch()
Returns the isfixedpitch.

Returns:
Returns the isfixedpitch.

isIsfixedpitch

public boolean isIsfixedpitch()
Getter for isfixedpitch.

Returns:
the isfixedpitch

setAscender

public void setAscender(float a)
Set the ascender.

Parameters:
a - The ascender to set.

setCapheight

public void setCapheight(float height)
Set the capheight.

Parameters:
height - The capheight to set.

setCharacterset

public void setCharacterset(java.lang.String cs)
Set the characterset.

Parameters:
cs - The characterset to set.

setComment

public void setComment(java.lang.String comment)
Setter for comment.

Parameters:
comment - the comment to set

setDescender

public void setDescender(float d)
Set the desender.

Parameters:
d - The descender to set.

setEncodingscheme

public void setEncodingscheme(java.lang.String encoding)
Set the encodingscheme.

Parameters:
encoding - The encodingscheme to set.

setFamilyname

public void setFamilyname(java.lang.String fname)
Set the familyname.

Parameters:
fname - The familyname to set.

setFixedpitch

public void setFixedpitch(boolean fixedpitch)
Set the isfixedpitch.

Parameters:
fixedpitch - The isfixedpitch to set.

setFontname

public void setFontname(java.lang.String fname)
Set the fontname.

Parameters:
fname - The fontname to set.

setFullname

public void setFullname(java.lang.String fname)
Set the fullname.

Parameters:
fname - The fullname to set.

setIsfixedpitch

public void setIsfixedpitch(boolean isfixedpitch)
Setter for isfixedpitch.

Parameters:
isfixedpitch - the isfixedpitch to set

setItalicangle

public void setItalicangle(float i)
Set the italicangle.

Parameters:
i - The italicangle to set.

setLlx

public void setLlx(float x)
Set the llx.

Parameters:
x - The llx to set.

setLly

public void setLly(float y)
Set the lly.

Parameters:
y - The lly to set.

setNotice

public void setNotice(java.lang.String notice)
Setter for notice.

Parameters:
notice - the notice to set

setStdhw

public void setStdhw(float hw)
Set the stdhw.

Parameters:
hw - The stdhw to set.

setStdvw

public void setStdvw(float vw)
Set the stdvw.

Parameters:
vw - The stdvw to set.

setUnderlineposition

public void setUnderlineposition(float position)
Set the underlineposition.

Parameters:
position - The underlineposition to set.

setUnderlinethickness

public void setUnderlinethickness(float thickness)
Set the thickness.

Parameters:
thickness - The underlinethickness to set.

setUrx

public void setUrx(float x)
Set the urx.

Parameters:
x - The urx to set.

setUry

public void setUry(float y)
Set the ury.

Parameters:
y - The ury to set.

setWeight

public void setWeight(java.lang.String w)
Set the weight.

Parameters:
w - The weight to set.

setXheight

public void setXheight(float x)
Set the xheight.

Parameters:
x - The xheight to set.

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
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( org.extex.util.xml.XMLStreamWriter)