org.jfree.report.modules.output.support.itext
Class BaseFontRecord
java.lang.Object
|
+--org.jfree.report.modules.output.support.itext.BaseFontRecord
- public final class BaseFontRecord
- extends java.lang.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(java.lang.String fileName,
boolean trueTypeFont,
boolean embedded,
com.lowagie.text.pdf.BaseFont baseFont,
boolean bold,
boolean italics)
Creates a new font record. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BaseFontRecord
public BaseFontRecord(java.lang.String fileName,
boolean trueTypeFont,
boolean embedded,
com.lowagie.text.pdf.BaseFont baseFont,
boolean bold,
boolean italics)
- Creates a new font record.
- Parameters:
logicalName - the logical iText name of the font.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.
isTrueTypeFont
public boolean isTrueTypeFont()
isBold
public boolean isBold()
isItalics
public boolean isItalics()
createKey
public BaseFontRecordKey createKey()
- Creates a font record key.
- Returns:
- the font record key.
getEncoding
public java.lang.String getEncoding()
- Returns the encoding.
- Returns:
- the encoding.
isEmbedded
public boolean isEmbedded()
- Returns true if the font should be embedded in the PDF output, and false if not.
- Returns:
- true or false.
getFileName
public java.lang.String getFileName()
- Returns the logical name of the font.
- Returns:
- the logical name.
getBaseFont
public com.lowagie.text.pdf.BaseFont getBaseFont()
- Returns the iText BaseFont.
- Returns:
- the itext BaseFont.