org.extex.font.fontparameter
Class FontParameter

java.lang.Object
  extended by org.extex.font.fontparameter.FontParameter

public class FontParameter
extends java.lang.Object

Manage additional font parameters.

Version:
$Revision: 5739 $
Author:
Michael Niedermair

Constructor Summary
FontParameter()
          Creates a new object.
FontParameter(java.io.InputStream in)
          Creates a new object.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Integer> getFontDimen()
          Getter for fontDimen.
 java.lang.Integer getFontDimen(java.lang.String name)
          Returns the font dimen value, or null, if not found.
 java.lang.String getGlyphname(UnicodeChar uc)
          Returns the name of the glyph, or null, if not found.
 UnicodeChar getUnicode(java.lang.String name)
          Returns the UnicodeChar for the glyph name or null, if not found.
 boolean isUseGlyphName()
          Getter for useGlyphName.
 void setUseGlyphName(boolean useGlyphName)
          Setter for useGlyphName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontParameter

public FontParameter()
Creates a new object.


FontParameter

public FontParameter(java.io.InputStream in)
              throws java.io.IOException
Creates a new object.

Parameters:
in - The input.
Throws:
java.io.IOException - if a io-error occurred.
Method Detail

getFontDimen

public java.lang.Integer getFontDimen(java.lang.String name)
Returns the font dimen value, or null, if not found.

Parameters:
name - The name of the value.
Returns:
Returns the font dimen value, or null, if not found.

getGlyphname

public java.lang.String getGlyphname(UnicodeChar uc)
Returns the name of the glyph, or null, if not found.

Parameters:
uc - the Unicode char.
Returns:
the name of the glyph, or null, if not found.

getUnicode

public UnicodeChar getUnicode(java.lang.String name)
Returns the UnicodeChar for the glyph name or null, if not found.

Parameters:
name - The glyph name.
Returns:
Returns the UnicodeChar for the glyph name or null, if not found.

isUseGlyphName

public boolean isUseGlyphName()
Getter for useGlyphName.

Returns:
the useGlyphName

setUseGlyphName

public void setUseGlyphName(boolean useGlyphName)
Setter for useGlyphName.

Parameters:
useGlyphName - the useGlyphName to set

getFontDimen

public java.util.Map<java.lang.String,java.lang.Integer> getFontDimen()
Getter for fontDimen.

Returns:
the fontDimen