org.extex.font
Interface ExtexFont

All Superinterfaces:
BaseFont
All Known Subinterfaces:
LoadableFont
All Known Implementing Classes:
LoadableAfmFont, LoadableTfmFont, LoadableVfFont, LoadableXtfFont, NullExtexFont

public interface ExtexFont
extends BaseFont

Interface for the extex font.

Version:
$Revision: 5825 $
Author:
Michael Niedermair

Method Summary
 FixedDimen getActualSize()
          Returns the actual size of the font.
 FixedGlue getDepth(UnicodeChar uc)
          Returns the depth of the char.
 FixedDimen getDesignSize()
          Returns the design size of the font.
 FixedDimen getEm()
          Returns the size of 'M'.
 FixedDimen getEx()
          Returns the size of 'x'.
 FixedDimen getFontDimen(java.lang.String name)
          Returns the size of the parameter with the name 'name'.
 java.lang.String getFontName()
          Returns the name of the font.
 FixedGlue getHeight(UnicodeChar uc)
          Returns the height of the char.
 FixedDimen getItalicCorrection(UnicodeChar uc)
          Returns the italic correction of the char.
 FixedDimen getKerning(UnicodeChar uc1, UnicodeChar uc2)
          Returns the kerning between two chars.
 UnicodeChar getLigature(UnicodeChar uc1, UnicodeChar uc2)
          Returns the ligature for two chars.
 FixedCount getScaleFactor()
          Returns the scale factor of the font.
 FixedGlue getSpace()
          Returns the size of the 'space'.
 FixedGlue getWidth(UnicodeChar uc)
          Returns the width of the char.
 boolean hasGlyph(UnicodeChar uc)
          Returns true, if the glyph exists.
 
Methods inherited from interface org.extex.font.BaseFont
getActualFontKey, getFontKey
 

Method Detail

getActualSize

FixedDimen getActualSize()
Returns the actual size of the font.

Returns:
Returns the actual size of the font.

getDepth

FixedGlue getDepth(UnicodeChar uc)
Returns the depth of the char. If the character is not defined or an invalid value is given, then the depth 0pt is returned.

Parameters:
uc - The Unicode char.
Returns:
Returns the depth of the char.

getDesignSize

FixedDimen getDesignSize()
Returns the design size of the font.

Returns:
Returns the design size of the font.

getEm

FixedDimen getEm()
Returns the size of 'M'.

Returns:
Returns the size of 'M'.

getEx

FixedDimen getEx()
Returns the size of 'x'.

Returns:
Returns the size of 'x'.

getFontDimen

FixedDimen getFontDimen(java.lang.String name)
Returns the size of the parameter with the name 'name'.

The size are multiples of the design size!

Parameters:
name - The name of the parameter.
Returns:
Returns the size of the parameter with the name 'name'.

getFontName

java.lang.String getFontName()
Returns the name of the font.

Returns:
Returns the name of the font.

getHeight

FixedGlue getHeight(UnicodeChar uc)
Returns the height of the char. If the character is not defined or an invalid value is given, then the height 0pt is returned.

Parameters:
uc - The Unicode char.
Returns:
Returns the height of the char.

getItalicCorrection

FixedDimen getItalicCorrection(UnicodeChar uc)
Returns the italic correction of the char. If the character is not defined or an invalid value is given, then the italic correction 0pt is returned.

Parameters:
uc - The Unicode char.
Returns:
Returns the italic correction of the char.

getKerning

FixedDimen getKerning(UnicodeChar uc1,
                      UnicodeChar uc2)
Returns the kerning between two chars.

Parameters:
uc1 - The Unicode char (first one).
uc2 - The Unicode char (second one).
Returns:
Returns the kerning between two chars.

getLigature

UnicodeChar getLigature(UnicodeChar uc1,
                        UnicodeChar uc2)
Returns the ligature for two chars. If no ligature exists then null is returned.

Parameters:
uc1 - The Unicode char (first one).
uc2 - The Unicode char (second one).
Returns:
Returns the ligature for two chars.

getScaleFactor

FixedCount getScaleFactor()
Returns the scale factor of the font. The scale factor is a multiple of 1000.

Returns:
Returns the scale factor of the font.

getSpace

FixedGlue getSpace()
Returns the size of the 'space'.

Returns:
Returns the size of the 'space'.

getWidth

FixedGlue getWidth(UnicodeChar uc)
Returns the width of the char. If the character is not defined or an invalid value is given, then the width 0pt is returned.

Parameters:
uc - The Unicode char.
Returns:
Returns the width of the char.

hasGlyph

boolean hasGlyph(UnicodeChar uc)
Returns true, if the glyph exists.

Parameters:
uc - the unicode char
Returns:
true, if the glyph exists.