de.dante.extex.font
Interface Glyph

All Known Implementing Classes:
GlyphImpl

public interface Glyph

Interface for a Glyph

Version:
$Revision: 1.5 $
Author:
Michael Niedermair

Method Summary
 void addKerning(Kerning kern)
          Add kerning for the glyph.
 void addLigature(Ligature lig)
          Add ligature for the glyph.
 Dimen getDepth()
          depth
 FontByteArray getExternalFile()
           
 Dimen getHeight()
           
 Dimen getItalicCorrection()
           
 Dimen getKerning(UnicodeChar uc)
          Return the kerning for the glyph.
 Dimen getLeftSpace()
           
 UnicodeChar getLigature(UnicodeChar uc)
          Return the ligature as UnicodeChar, or null, if no ligature exists.
 java.lang.String getName()
           
 java.lang.String getNumber()
           
 Dimen getRightSpace()
           
 Dimen getWidth()
           
 void setDepth(Dimen d)
           
 void setExternalFile(FontByteArray file)
           
 void setHeight(Dimen h)
           
 void setItalicCorrection(Dimen d)
           
 void setLeftSpace(Dimen ls)
           
 void setName(java.lang.String n)
           
 void setNumber(java.lang.String nr)
           
 void setRightSpace(Dimen rs)
           
 void setWidth(Dimen w)
           
 

Method Detail

getDepth

public Dimen getDepth()
depth

Returns:
Returns the depth.

setDepth

public void setDepth(Dimen d)
Parameters:
d - The depth to set.

getHeight

public Dimen getHeight()
Returns:
Returns the height.

setHeight

public void setHeight(Dimen h)
Parameters:
h - The height to set.

getItalicCorrection

public Dimen getItalicCorrection()
Returns:
the italic correction.

setItalicCorrection

public void setItalicCorrection(Dimen d)
Parameters:
d - the italic correction to set.

getWidth

public Dimen getWidth()
Returns:
Returns the width.

setWidth

public void setWidth(Dimen w)
Parameters:
w - The width to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String n)
Parameters:
n - The name to set.

getNumber

public java.lang.String getNumber()
Returns:
Returns the number.

setNumber

public void setNumber(java.lang.String nr)
Parameters:
nr - The number to set.

addKerning

public void addKerning(Kerning kern)
Add kerning for the glyph.

Parameters:
kern - the kerning

getKerning

public Dimen getKerning(UnicodeChar uc)
Return the kerning for the glyph.

Parameters:
uc - the following character
Returns:
the kerning-size as Dimen

addLigature

public void addLigature(Ligature lig)
Add ligature for the glyph.

Parameters:
lig - the ligature

getLigature

public UnicodeChar getLigature(UnicodeChar uc)
Return the ligature as UnicodeChar, or null, if no ligature exists. If you get a ligature-character, then you MUST call the method getligature() twice, if a ligature with more then two characters exist. (e.g. f - ff - ffl)

Parameters:
uc - the following character
Returns:
the ligature

getExternalFile

public FontByteArray getExternalFile()
Returns:
Returns the externalfile. MGN change FontFile

setExternalFile

public void setExternalFile(FontByteArray file)
Parameters:
file - The externalfile to set.

getLeftSpace

public Dimen getLeftSpace()
Returns:
Returns the leftSpace.

setLeftSpace

public void setLeftSpace(Dimen ls)
Parameters:
ls - The leftSpace to set.

getRightSpace

public Dimen getRightSpace()
Returns:
Returns the rightSpace.

setRightSpace

public void setRightSpace(Dimen rs)
Parameters:
rs - The rightSpace to set.