org.pentaho.reporting.libraries.fonts.itext

Class BaseFontRecord

public final class BaseFontRecord extends Object

A PDF font record. The record is used to cache the generated PDF fonts. Once created the base font record is immutable. The base font record does not store font sizes.

Author: Thomas Morgner

Constructor Summary
BaseFontRecord(String fileName, boolean trueTypeFont, boolean embedded, BaseFont baseFont, boolean bold, boolean italics)
Creates a new font record.
Method Summary
BaseFontRecordKeycreateKey()
Creates a font record key.
BaseFontgetBaseFont()
Returns the iText BaseFont.
StringgetEncoding()
Returns the encoding.
StringgetFileName()
Returns the logical name of the font.
booleanisBold()
booleanisEmbedded()
Returns true if the font should be embedded in the PDF output, and false if not.
booleanisItalics()
booleanisTrueTypeFont()

Constructor Detail

BaseFontRecord

public BaseFontRecord(String fileName, boolean trueTypeFont, boolean embedded, BaseFont baseFont, boolean bold, boolean italics)
Creates a new font record.

Parameters: fileName the physical filename name of the font file. embedded a flag that defines whether this font should be embedded in the target document. baseFont the generated base font for the given font definition.

Method Detail

createKey

public BaseFontRecordKey createKey()
Creates a font record key.

Returns: the font record key.

getBaseFont

public BaseFont getBaseFont()
Returns the iText BaseFont.

Returns: the itext BaseFont.

getEncoding

public String getEncoding()
Returns the encoding.

Returns: the encoding.

getFileName

public String getFileName()
Returns the logical name of the font.

Returns: the logical name.

isBold

public boolean isBold()

isEmbedded

public boolean isEmbedded()
Returns true if the font should be embedded in the PDF output, and false if not.

Returns: true or false.

isItalics

public boolean isItalics()

isTrueTypeFont

public boolean isTrueTypeFont()