org.apache.fop.render.afp.fonts
Class AFPFont
java.lang.Object
|
+--org.apache.fop.fonts.Typeface
|
+--org.apache.fop.render.afp.fonts.AFPFont
- All Implemented Interfaces:
- FontMetrics
- Direct Known Subclasses:
- OutlineFont, RasterFont
- public abstract class AFPFont
- extends Typeface
All implemenations of AFP fonts should extend this base class,
the object implements the FontMetrics information.
Field Summary |
protected java.lang.String |
_name
The font name |
Constructor Summary |
AFPFont(java.lang.String name)
Constructor for the base font requires the name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_name
protected java.lang.String _name
- The font name
AFPFont
public AFPFont(java.lang.String name)
- Constructor for the base font requires the name.
- Parameters:
name
- the name of the font
getFontName
public java.lang.String getFontName()
- Description copied from interface:
FontMetrics
- Returns the font name.
- Returns:
- the name of the font.
getFontType
public FontType getFontType()
- Returns the type of the font.
- Returns:
- the font type
hasKerningInfo
public boolean hasKerningInfo()
- Indicates if the font has kering information.
- Returns:
- True, if kerning is available.
getKerningInfo
public java.util.Map getKerningInfo()
- Returns the kerning map for the font.
- Returns:
- the kerning map
getCharacterSet
public abstract CharacterSet getCharacterSet(int size)
- Returns the character set for a given size
- Parameters:
size
- the font size- Returns:
- the character set object
hasChar
public boolean hasChar(char c)
- Determines whether this font contains a particular character/glyph.
- Overrides:
hasChar
in class Typeface
- Parameters:
c
- character to check- Returns:
- True if the character is supported, Falso otherwise
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.