jPodRenderer PDF library

de.intarsys.pdf.platform.cwt.font
Class StandardFontFactory

java.lang.Object
  extended by de.intarsys.pdf.platform.cwt.font.StandardFontFactory
All Implemented Interfaces:
de.intarsys.pdf.font.outlet.IFontFactory
Direct Known Subclasses:
DocumentFontFactory

public class StandardFontFactory
extends Object
implements de.intarsys.pdf.font.outlet.IFontFactory

The standard IFontFactory managing and creating fonts.

The factory tries first to resolve the request within the cache of already loaded fonts. If not found, a new IFont is looked up.


Constructor Summary
StandardFontFactory()
           
 
Method Summary
 de.intarsys.pdf.font.PDFont getBoldFlavor(de.intarsys.pdf.font.PDFont font)
           
 de.intarsys.pdf.font.PDFont getFont(de.intarsys.pdf.font.outlet.IFontQuery query)
           
 de.intarsys.pdf.font.PDFont getItalicFlavor(de.intarsys.pdf.font.PDFont font)
           
 de.intarsys.pdf.font.PDFont getRegularFlavor(de.intarsys.pdf.font.PDFont font)
           
 boolean isEmbedNew()
           
 void registerFont(de.intarsys.pdf.font.PDFont font)
          register a font that can be reused in an other context.
 void reset()
           
 void setEmbedNew(boolean embedNew)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardFontFactory

public StandardFontFactory()
Method Detail

getBoldFlavor

public de.intarsys.pdf.font.PDFont getBoldFlavor(de.intarsys.pdf.font.PDFont font)
                                          throws de.intarsys.pdf.font.outlet.FontFactoryException
Specified by:
getBoldFlavor in interface de.intarsys.pdf.font.outlet.IFontFactory
Throws:
de.intarsys.pdf.font.outlet.FontFactoryException

getFont

public de.intarsys.pdf.font.PDFont getFont(de.intarsys.pdf.font.outlet.IFontQuery query)
                                    throws de.intarsys.pdf.font.outlet.FontFactoryException
Specified by:
getFont in interface de.intarsys.pdf.font.outlet.IFontFactory
Throws:
de.intarsys.pdf.font.outlet.FontFactoryException

getItalicFlavor

public de.intarsys.pdf.font.PDFont getItalicFlavor(de.intarsys.pdf.font.PDFont font)
                                            throws de.intarsys.pdf.font.outlet.FontFactoryException
Specified by:
getItalicFlavor in interface de.intarsys.pdf.font.outlet.IFontFactory
Throws:
de.intarsys.pdf.font.outlet.FontFactoryException

getRegularFlavor

public de.intarsys.pdf.font.PDFont getRegularFlavor(de.intarsys.pdf.font.PDFont font)
                                             throws de.intarsys.pdf.font.outlet.FontFactoryException
Specified by:
getRegularFlavor in interface de.intarsys.pdf.font.outlet.IFontFactory
Throws:
de.intarsys.pdf.font.outlet.FontFactoryException

isEmbedNew

public boolean isEmbedNew()

registerFont

public void registerFont(de.intarsys.pdf.font.PDFont font)
register a font that can be reused in an other context.

Specified by:
registerFont in interface de.intarsys.pdf.font.outlet.IFontFactory
Parameters:
font - The PDFont to be registered

reset

public void reset()

setEmbedNew

public void setEmbedNew(boolean embedNew)

jPodRenderer PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.