|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.pdf.PDFObject
com.elegantj.pdf.PDFFont
com.elegantj.pdf.Type1Font
Provides the Type1Font for the PDF
| Field Summary | |
static java.lang.String |
COURIER
Base 14 type 1 font |
static java.lang.String |
COURIER_BOLD
Base 14 type 1 font |
static java.lang.String |
COURIER_BOLDOBLIQUE
Base 14 type 1 font |
static java.lang.String |
COURIER_OBLIQUE
Base 14 type 1 font |
static java.lang.String |
HELVETICA
Base 14 type 1 font |
static java.lang.String |
HELVETICA_BOLD
Base 14 type 1 font |
static java.lang.String |
HELVETICA_BOLDOBLIQUE
Base 14 type 1 font |
static java.lang.String |
HELVETICA_OBLIQUE
Base 14 type 1 font |
static java.lang.String |
SYMBOL
Base 14 type 1 font |
static java.lang.String |
TIMES_BOLD
Base 14 type 1 font |
static java.lang.String |
TIMES_BOLDITALIC
Base 14 type 1 font |
static java.lang.String |
TIMES_ITALIC
Base 14 type 1 font |
static java.lang.String |
TIMES_ROMAN
Base 14 type 1 font |
static java.lang.String |
ZAPFDINGBATS
Base 14 type 1 font |
| Fields inherited from class com.elegantj.pdf.PDFFont |
BOLD, BOLDITALIC, IDENTITY_H, IDENTITY_V, ITALIC, MACROMAN, REGULAR, WINANSI |
| Constructor Summary | |
Type1Font(java.lang.String baseFontName,
java.lang.String encoding)
Constructs the Type1Font with the specified baseFontName and encoding |
|
Type1Font(java.lang.String afmFilePath,
java.lang.String pfbFilePath,
java.lang.String encoding)
Constructs the Type1Font with specified afmFilePath, pfbFilePath and encoding |
|
| Method Summary | |
float |
getAscender(float fontSize)
Returns the maximum height above the baseline reached by characters in this font |
float |
getBBoxLowerLeftX(float fontSize)
Returns the font’s bounding box's lower left X coordinate |
float |
getBBoxLowerLeftY(float fontSize)
Returns the font’s bounding box's lower left Y coordinate |
float |
getBBoxUpperRightX(float fontSize)
Returns the font’s bounding box's upper right X coordinate |
float |
getBBoxUpperRightY(float fontSize)
Returns the font’s bounding box's upper right Y coordinate |
float |
getCapHeight(float fontSize)
Returns the Y-coordinate of the top of flat capital letters, measured from the baseline |
float |
getDescender(float fontSize)
Returns the maximum depth below the baseline reached by characters in this font Descent is a negative number |
float |
getItalicAngle()
Returns the angle in degrees counterclockwise from the vertical of the dominant vertical strokes of the font. |
float |
getLeading()
Returns the desired spacing between lines of text |
| Methods inherited from class com.elegantj.pdf.PDFFont |
getCharWidth, getCharWidth, getStringWidth, getStringWidth |
| Methods inherited from class com.elegantj.pdf.PDFObject |
getPDFObjectID, getPDFObjectRefStr, getPDFObjectType, setPDFObjectID, setPDFObjectType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String COURIER
public static final java.lang.String COURIER_BOLD
public static final java.lang.String COURIER_OBLIQUE
public static final java.lang.String COURIER_BOLDOBLIQUE
public static final java.lang.String HELVETICA
public static final java.lang.String HELVETICA_BOLD
public static final java.lang.String HELVETICA_OBLIQUE
public static final java.lang.String HELVETICA_BOLDOBLIQUE
public static final java.lang.String SYMBOL
public static final java.lang.String TIMES_ROMAN
public static final java.lang.String TIMES_BOLD
public static final java.lang.String TIMES_ITALIC
public static final java.lang.String TIMES_BOLDITALIC
public static final java.lang.String ZAPFDINGBATS
| Constructor Detail |
public Type1Font(java.lang.String baseFontName,
java.lang.String encoding)
baseFontName - The specified base Font name
Possible values are COURIER, COURIER_BOLD, COURIER_OBLIQUE, COURIER_BOLDOBLIQUE,
HELVETICA, HELVETICA_BOLD, HELVETICA_OBLIQUE, HELVETICA_BOLDOBLIQUE, SYMBOL,
TIMES_ROMAN, TIMES_BOLD, TIMES_ITALIC, TIMES_BOLDITALIC, ZAPFDINGBATSencoding - the specified encoding for the Type1Font
public Type1Font(java.lang.String afmFilePath,
java.lang.String pfbFilePath,
java.lang.String encoding)
throws java.lang.Exception,
java.io.IOException
afmFilePath - The path of the afm filepfbFilePath - The path of the pfb fileencoding - The encoding for the font| Method Detail |
public float getAscender(float fontSize)
getAscender in class PDFFontfontSize - The specified font size
public float getCapHeight(float fontSize)
getCapHeight in class PDFFontfontSize - The specified font size
public float getDescender(float fontSize)
getDescender in class PDFFontfontSize - The specified font size
public float getItalicAngle()
getItalicAngle in class PDFFontpublic float getBBoxLowerLeftX(float fontSize)
getBBoxLowerLeftX in class PDFFontfontSize - The specified font size
public float getBBoxLowerLeftY(float fontSize)
getBBoxLowerLeftY in class PDFFontfontSize - The specified font size
public float getBBoxUpperRightX(float fontSize)
getBBoxUpperRightX in class PDFFontfontSize - The specified font size
public float getBBoxUpperRightY(float fontSize)
getBBoxUpperRightY in class PDFFontfontSize - The specified font size
public float getLeading()
getLeading in class PDFFont
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||