java.lang.Object
org.jfree.pdf.internal.PDFObject
org.jfree.pdf.internal.PDFFont
A
PDFObject
representing a PDF font.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The BaseFont (for example, "/Helvetica").static final String
Identifier for the standard PDF font 'Courier'.static final String
Identifier for the standard PDF font 'Courier-Bold'.static final String
Identifier for the standard PDF font 'Courier-BoldItalic'.static final String
Identifier for the standard PDF font 'Courier-Italic'.private String
static final String
Identifier for the standard PDF font 'Helvetica'.static final String
Identifier for the standard PDF font 'Helvetica-Bold'.static final String
Identifier for the standard PDF font 'Helvetica-BoldOblique'.static final String
Identifier for the standard PDF font 'Helvetica-Oblique'.private String
static final String
Identifier for the standard PDF font 'Times-Bold'.static final String
Identifier for the standard PDF font 'Times-BoldItalic'.static final String
Identifier for the standard PDF font 'Times-Italic'.static final String
Identifier for the standard PDF font 'Times-Roman'. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Dictionary
getName()
Returns the name of the font within the PDF document (this is not the same as the font name).byte[]
Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.Methods inherited from class org.jfree.pdf.internal.PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
Field Details
-
HELVETICA
Identifier for the standard PDF font 'Helvetica'.- See Also:
-
HELVETICA_BOLD
Identifier for the standard PDF font 'Helvetica-Bold'.- See Also:
-
HELVETICA_OBLIQUE
Identifier for the standard PDF font 'Helvetica-Oblique'.- See Also:
-
HELVETICA_BOLDOBLIQUE
Identifier for the standard PDF font 'Helvetica-BoldOblique'.- See Also:
-
TIMES_ROMAN
Identifier for the standard PDF font 'Times-Roman'.- See Also:
-
TIMES_BOLD
Identifier for the standard PDF font 'Times-Bold'.- See Also:
-
TIMES_ITALIC
Identifier for the standard PDF font 'Times-Italic'.- See Also:
-
TIMES_BOLDITALIC
Identifier for the standard PDF font 'Times-BoldItalic'.- See Also:
-
COURIER
Identifier for the standard PDF font 'Courier'.- See Also:
-
COURIER_BOLD
Identifier for the standard PDF font 'Courier-Bold'.- See Also:
-
COURIER_ITALIC
Identifier for the standard PDF font 'Courier-Italic'.- See Also:
-
COURIER_BOLDITALIC
Identifier for the standard PDF font 'Courier-BoldItalic'.- See Also:
-
name
-
baseFont
The BaseFont (for example, "/Helvetica"). -
encoding
-
-
Constructor Details
-
PDFFont
Creates a newPDFFont
instance.- Parameters:
number
- the PDF object number.generation
- the PDF object generation number.name
- the font name within the PDF document.baseFont
- the base font name.encoding
- the encoding.
-
-
Method Details
-
getName
Returns the name of the font within the PDF document (this is not the same as the font name).- Returns:
- The font name.
-
getObjectBytes
public byte[] getObjectBytes()Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.- Specified by:
getObjectBytes
in classPDFObject
- Returns:
- A byte array.
-
createDictionary
-