org.apache.fop.render.afp.fonts
Class FontFamily

java.lang.Object
  extended byorg.apache.fop.render.afp.fonts.FontFamily

public class FontFamily
extends java.lang.Object

The font family is a collection of font resource information relating to a particular font identified by the font name. It contains information relating to the different styles, weights and point sizes that can be used within the font family.


Field Summary
protected static org.apache.commons.logging.Log LOGGER
          Static logging instance
 
Constructor Summary
FontFamily(java.lang.String name, java.lang.String codepage, java.lang.String encoding)
          Construct a font object.
 
Method Summary
protected  void addFont(BaseFont font)
          Add a font object to the font family.
 java.lang.String getCodePage()
           
 java.lang.String getEncoding()
          Returns the encoding that should be used for this font code page
 BaseFont getFont(java.lang.String weight, java.lang.String style)
           
 java.util.Collection getFontCollection()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final org.apache.commons.logging.Log LOGGER
Static logging instance

Constructor Detail

FontFamily

public FontFamily(java.lang.String name,
                  java.lang.String codepage,
                  java.lang.String encoding)
Construct a font object.

Parameters:
name - the font family name
codepage - the codepage to be used
encoding - the encoding of the font
Method Detail

addFont

protected void addFont(BaseFont font)
Add a font object to the font family.

Parameters:
font - the font to be added

getFont

public BaseFont getFont(java.lang.String weight,
                        java.lang.String style)

getName

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

getCodePage

public java.lang.String getCodePage()
Returns:
the code page identifier

getEncoding

public java.lang.String getEncoding()
Returns the encoding that should be used for this font code page

Returns:
String

getFontCollection

public java.util.Collection getFontCollection()
Returns:
the collection of font objects.