com.jrefinery.report.targets.support.itext
Class BaseFontSupport

java.lang.Object
  |
  +--com.jrefinery.report.targets.support.itext.BaseFontSupport

public class BaseFontSupport
extends java.lang.Object

iText font support.

Author:
Thomas Morgner

Constructor Summary
BaseFontSupport()
          Creates a new support instance.
 
Method Summary
 void close()
          Close the font support.
 BaseFontRecord createBaseFont(FontDefinition font, java.lang.String encoding, boolean embedded)
          Creates a BaseFontRecord for an AWT font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFontSupport

public BaseFontSupport()
Creates a new support instance.

Method Detail

close

public void close()
Close the font support.


createBaseFont

public BaseFontRecord createBaseFont(FontDefinition font,
                                     java.lang.String encoding,
                                     boolean embedded)
                              throws OutputTargetException
Creates a BaseFontRecord for an AWT font. If no basefont could be created, an OutputTargetException is thrown.

Parameters:
font - the new font (null not permitted).
encoding - the encoding.
embedded - a flag indicating whether to embed the font glyphs in the generated documents.
Returns:
the base font record.
Throws:
OutputTargetException - if there was a problem setting the font for the target.