|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.Resource
com.cete.dynamicpdf.Font
com.cete.dynamicpdf.text.Type1Font
public class Type1Font
Represents a Type1Font font.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
|---|---|
Type1Font(java.lang.String metricsFile,
java.lang.String fontFile)
Initializes a new instance of the Type1Font class. |
|
| Method Summary | |
|---|---|
void |
draw(DocumentWriter writer)
Draws the Type 1 font to the given DocumentWriter object. |
short |
getAscender()
Gets the ascender for the font. |
short |
getDescender()
Gets the descender for the font. |
int |
getGlyphWidth(char glyph)
Returns the mwidth of a glyph. |
LineBreaker |
getLineBreaker()
Gets the default line breaker for the font. |
short |
getLineGap()
Gets the line gap for the font. |
java.lang.String |
getName()
Gets the name of the font. |
int |
getRequiredPdfObjects()
Gets the number of PDF objects required by the type 1 font. |
| Methods inherited from class com.cete.dynamicpdf.Resource |
|---|
getUid, newUid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Type1Font(java.lang.String metricsFile,
java.lang.String fontFile)
Type1Font class.
metricsFile - Physical file path to the .PFM or .AFM font metrics file.fontFile - Physical file path to the Type 1 (.PFB) font file.| Method Detail |
|---|
public int getRequiredPdfObjects()
getRequiredPdfObjects in class Resourcepublic int getGlyphWidth(char glyph)
getGlyphWidth in class Fontglyph - Glyph whose mwidth is to be returned.
public LineBreaker getLineBreaker()
getLineBreaker in class Fontpublic short getDescender()
getDescender in class Fontpublic short getAscender()
getAscender in class Fontpublic short getLineGap()
getLineGap in class Fontpublic java.lang.String getName()
getName in class Fontpublic void draw(DocumentWriter writer)
DocumentWriter object.
draw in class Resourcewriter - DocumentWriter object to receive the
Type 1 font's output.DocumentWriter
|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||