| java.lang.Object gnu.jpdf.PDFObject gnu.jpdf.PDFFont
PDFFont | public class PDFFont extends PDFObject implements Serializable(Code) | | This class defines a font within a PDF document.
author: Peter T Mount,http://www.retep.org.uk/pdf/ author: Eric Z. Beard, ericzbeard@hotmail.com author: $Author: ezb $ version: $Revision: 1.1.1.1 $, $Date: 2001/10/29 19:51:08 $ |
Constructor Summary | |
protected | PDFFont() This constructs a default PDFFont. | public | PDFFont(String name, String type, String font, int style) Constructs a PDFFont. |
PDFFont | protected PDFFont()(Code) | | This constructs a default PDFFont. In this case Helvetica
|
PDFFont | public PDFFont(String name, String type, String font, int style)(Code) | | Constructs a PDFFont. This will attempt to map the font from a known
Java font name to that in PDF, defaulting to Helvetica if not possible.
Parameters: name - The document name, ie /F1 Parameters: type - The pdf type, ie /Type1 Parameters: font - The font name, ie Helvetica Parameters: style - The java.awt.Font style, ie: Font.PLAIN |
equals | protected boolean equals(String type, String font, int style)(Code) | | This is used by the PDF and PDFPage classes to compare font names
Parameters: type - The pdf type, ie /Type1 Parameters: font - The font name, ie Helvetica Parameters: style - The java.awt.Font style, ie: Font.PLAIN true if this object is identical to this font's spec |
getName | public String getName()(Code) | | This is the most common method to use.
the Font name within the PDF document. |
|
|