Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

gnu::jpdf::PDFFont Class Reference

Inheritance diagram for gnu::jpdf::PDFFont:

Inheritance graph
[legend]
Collaboration diagram for gnu::jpdf::PDFFont:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PDFFont (String name, String type, String font, int style)
String getName ()
String getType ()
String getFont ()
int getStyle ()
void write (OutputStream os) throws IOException

Protected Member Functions

 PDFFont ()
boolean equals (String type, String font, int style)

Detailed Description

This class defines a font within a PDF document.

Author:
Peter T Mount,http://www.retep.org.uk/pdf/

Eric Z. Beard, ericzbeard@hotmail.com

Author
ezb
Version:
Revision
1.1.1.1
,
Date
2001/10/29 19:51:08


Constructor & Destructor Documentation

gnu::jpdf::PDFFont::PDFFont  )  [inline, protected]
 

This constructs a default PDFFont. In this case Helvetica

gnu::jpdf::PDFFont::PDFFont String  name,
String  type,
String  font,
int  style
[inline]
 

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
type The pdf type, ie /Type1
font The font name, ie Helvetica
style The java.awt.Font style, ie: Font.PLAIN


Member Function Documentation

boolean gnu::jpdf::PDFFont::equals String  type,
String  font,
int  style
[inline, protected]
 

This is used by the PDF and PDFPage classes to compare font names

Parameters:
type The pdf type, ie /Type1
font The font name, ie Helvetica
style The java.awt.Font style, ie: Font.PLAIN
Returns:
true if this object is identical to this font's spec

String gnu::jpdf::PDFFont::getFont  )  [inline]
 

Returns:
The PDF Font name

String gnu::jpdf::PDFFont::getName  )  [inline]
 

This is the most common method to use.

Returns:
the Font name within the PDF document.

int gnu::jpdf::PDFFont::getStyle  )  [inline]
 

Returns:
the font style.
See also:
java.awt.Font

String gnu::jpdf::PDFFont::getType  )  [inline]
 

Returns:
the Font's PDF type

Reimplemented from gnu::jpdf::PDFObject.

void gnu::jpdf::PDFFont::write OutputStream  os  )  throws IOException [inline, virtual]
 

Parameters:
os OutputStream to send the object to
Exceptions:
IOException on error

Implements gnu::jpdf::PDFObject.


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 16:58:07 2005 by  doxygen 1.3.9.1