org.pentaho.reporting.libraries.fonts.itext
public class BaseFontSupport extends Object implements FontMapper
Constructor Summary | |
---|---|
BaseFontSupport(ITextFontRegistry registry)
Creates a new support instance. | |
BaseFontSupport(ITextFontRegistry registry, String defaultEncoding) |
Method Summary | |
---|---|
BaseFont | awtToPdf(Font font)
Returns a BaseFont which can be used to represent the given AWT Font
|
void | close()
Close the font support. |
BaseFont | createBaseFont(String logicalName, boolean bold, boolean italic, String encoding, boolean embedded)
Creates a iText-BaseFont for an font. |
BaseFontRecord | createBaseFontRecord(String logicalName, boolean bold, boolean italic, String encoding, boolean embedded)
Creates a BaseFontRecord for an font. |
String | getDefaultEncoding() |
boolean | isEmbedFonts() |
Font | pdfToAwt(BaseFont font, int size)
Returns an AWT Font which can be used to represent the given BaseFont
|
void | setDefaultEncoding(String defaultEncoding) |
void | setEmbedFonts(boolean embedFonts) |
Parameters: font the font to be converted
Returns: a BaseFont which has similar properties to the provided Font
Parameters: logicalName the name of the font (null not permitted). bold a flag indicating whether the font is rendered as bold font. italic a flag indicating whether the font is rendered as italic or cursive font. encoding the encoding. embedded a flag indicating whether to embed the font glyphs in the generated documents.
Returns: the base font record.
Throws: BaseFontCreateException if there was a problem setting the font for the target.
Parameters: logicalName the name of the font (null not permitted). bold a flag indicating whether the font is rendered as bold font. italic a flag indicating whether the font is rendered as italic or cursive font. encoding the encoding. embedded a flag indicating whether to embed the font glyphs in the generated documents.
Returns: the base font record.
Throws: BaseFontCreateException if there was a problem setting the font for the target.
Parameters: font the font to be converted size the desired point size of the resulting font
Returns: a Font which has similar properties to the provided BaseFont