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

java.lang.Object
  extended byde.dante.extex.font.type.afm.AfmHeader
All Implemented Interfaces:
XMLWriterConvertible

public class AfmHeader
extends java.lang.Object
implements XMLWriterConvertible

AFM-Header.

Version:
$Revision: 1.3 $
Author:
Michael Niedermair

Field Summary
static int NOTINIT
          not init
 
Constructor Summary
AfmHeader()
          Create a new object.
 
Method Summary
 int getAscender()
          Returns the ascender.
 int getCapheight()
          Returns the capheight.
 java.lang.String getCharacterset()
          Returns the characterset.
 int 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.
 int getLlx()
          Returns the llx.
 int getLly()
          Returns the lly.
 int getStdhw()
          Returns the stdhw.
 int getStdvw()
          Returns the stdvw.
 int getUnderlineposition()
          Returns the underlineposition.
 int getUnderlinethickness()
          Returns the underlinethickness.
 int getUrx()
          Returns the urx.
 int getUry()
          Returns the ury.
 java.lang.String getWeight()
          Returns the weight.
 int getXheight()
          Returns the xheight.
 boolean isFixedpitch()
          Returns the isfixedpitch.
 void setAscender(int a)
           
 void setCapheight(int height)
           
 void setCharacterset(java.lang.String cs)
           
 void setDescender(int d)
           
 void setEncodingscheme(java.lang.String encoding)
           
 void setFamilyname(java.lang.String fname)
           
 void setFixedpitch(boolean fixedpitch)
           
 void setFontname(java.lang.String fname)
           
 void setFullname(java.lang.String fname)
           
 void setItalicangle(float i)
           
 void setLlx(int x)
           
 void setLly(int y)
           
 void setStdhw(int hw)
           
 void setStdvw(int vw)
           
 void setUnderlineposition(int position)
           
 void setUnderlinethickness(int thickness)
           
 void setUrx(int x)
           
 void setUry(int y)
           
 void setWeight(java.lang.String w)
           
 void setXheight(int x)
           
 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 int NOTINIT
not init

See Also:
Constant Field Values
Constructor Detail

AfmHeader

public AfmHeader()
Create a new object.

Method Detail

getAscender

public int getAscender()
Returns the ascender.

Returns:
Returns the ascender.

setAscender

public void setAscender(int a)
Parameters:
a - The ascender to set.

getCapheight

public int getCapheight()
Returns the capheight.

Returns:
Returns the capheight.

setCapheight

public void setCapheight(int height)
Parameters:
height - The capheight to set.

getCharacterset

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

Returns:
Returns the characterset.

setCharacterset

public void setCharacterset(java.lang.String cs)
Parameters:
cs - The characterset to set.

getDescender

public int getDescender()
Returns the descender.

Returns:
Returns the descender.

setDescender

public void setDescender(int d)
Parameters:
d - The descender to set.

getEncodingscheme

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

Returns:
Returns the encodingscheme.

setEncodingscheme

public void setEncodingscheme(java.lang.String encoding)
Parameters:
encoding - The encodingscheme to set.

getFamilyname

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

Returns:
Returns the familyname.

setFamilyname

public void setFamilyname(java.lang.String fname)
Parameters:
fname - The familyname to set.

getFontname

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

Returns:
Returns the fontname.

setFontname

public void setFontname(java.lang.String fname)
Parameters:
fname - The fontname to set.

getFullname

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

Returns:
Returns the fullname.

setFullname

public void setFullname(java.lang.String fname)
Parameters:
fname - The fullname to set.

isFixedpitch

public boolean isFixedpitch()
Returns the isfixedpitch.

Returns:
Returns the isfixedpitch.

setFixedpitch

public void setFixedpitch(boolean fixedpitch)
Parameters:
fixedpitch - The isfixedpitch to set.

getItalicangle

public float getItalicangle()
Returns the italicangle.

Returns:
Returns the italicangle.

setItalicangle

public void setItalicangle(float i)
Parameters:
i - The italicangle to set.

getLlx

public int getLlx()
Returns the llx.

Returns:
Returns the llx.

setLlx

public void setLlx(int x)
Parameters:
x - The llx to set.

getLly

public int getLly()
Returns the lly.

Returns:
Returns the lly.

setLly

public void setLly(int y)
Parameters:
y - The lly to set.

getStdhw

public int getStdhw()
Returns the stdhw.

Returns:
Returns the stdhw.

setStdhw

public void setStdhw(int hw)
Parameters:
hw - The stdhw to set.

getStdvw

public int getStdvw()
Returns the stdvw.

Returns:
Returns the stdvw.

setStdvw

public void setStdvw(int vw)
Parameters:
vw - The stdvw to set.

getUnderlineposition

public int getUnderlineposition()
Returns the underlineposition.

Returns:
Returns the underlineposition.

setUnderlineposition

public void setUnderlineposition(int position)
Parameters:
position - The underlineposition to set.

getUnderlinethickness

public int getUnderlinethickness()
Returns the underlinethickness.

Returns:
Returns the underlinethickness.

setUnderlinethickness

public void setUnderlinethickness(int thickness)
Parameters:
thickness - The underlinethickness to set.

getUrx

public int getUrx()
Returns the urx.

Returns:
Returns the urx.

setUrx

public void setUrx(int x)
Parameters:
x - The urx to set.

getUry

public int getUry()
Returns the ury.

Returns:
Returns the ury.

setUry

public void setUry(int y)
Parameters:
y - The ury to set.

getWeight

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

Returns:
Returns the weight.

setWeight

public void setWeight(java.lang.String w)
Parameters:
w - The weight to set.

getXheight

public int getXheight()
Returns the xheight.

Returns:
Returns the xheight.

setXheight

public void setXheight(int x)
Parameters:
x - The xheight to set.

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)