fop 0.93

org.apache.fop.fonts
Class FontLoader

java.lang.Object
  extended byorg.apache.fop.fonts.FontLoader
Direct Known Subclasses:
TTFFontLoader, Type1FontLoader

public abstract class FontLoader
extends java.lang.Object

Base class for font loaders.


Constructor Summary
FontLoader()
           
 
Method Summary
abstract  CustomFont getFont()
           
static CustomFont loadFont(java.lang.String fontFileURI, FontResolver resolver)
          Loads a custom font from a URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontLoader

public FontLoader()
Method Detail

loadFont

public static CustomFont loadFont(java.lang.String fontFileURI,
                                  FontResolver resolver)
                           throws java.io.IOException
Loads a custom font from a URI. In the case of Type 1 fonts, the PFB file must be specified.

Parameters:
fontFileURI - the URI to the font
resolver - the font resolver to use when resolving URIs
Returns:
the newly loaded font
Throws:
java.io.IOException - In case of an I/O error

getFont

public abstract CustomFont getFont()
Returns:
the font loaded by this loader

fop 0.93

Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.