|
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
This class defines a font within a PDF document
| Field Summary | |
static int |
BOLD
Represents the BOLD style |
static int |
BOLDITALIC
Represents the BOLDITALIC style |
static java.lang.String |
IDENTITY_H
Represents the encoding |
static java.lang.String |
IDENTITY_V
Represents the encoding |
static int |
ITALIC
Represents the ITALIC style |
static java.lang.String |
MACROMAN
Represents the encoding |
static int |
REGULAR
Represents the REGULAR style |
static java.lang.String |
WINANSI
Represents the 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 |
int |
getCharWidth(char ch)
Returns the width of the specified char, normalized to the 1000 |
float |
getCharWidth(char ch,
float fontSize)
Returns the width of the specified char, with specified font size |
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 |
int |
getStringWidth(java.lang.String text)
Returns the width of the specified text, normalized to the 1000 |
float |
getStringWidth(java.lang.String text,
float fontSize)
Returns the width of the specified text, with specified font size |
| 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 int REGULAR
public static int BOLD
public static int ITALIC
public static int BOLDITALIC
public static final java.lang.String WINANSI
public static final java.lang.String MACROMAN
public static final java.lang.String IDENTITY_H
public static final java.lang.String IDENTITY_V
| Method Detail |
public int getCharWidth(char ch)
public float getCharWidth(char ch,
float fontSize)
public int getStringWidth(java.lang.String text)
public float getStringWidth(java.lang.String text,
float fontSize)
public float getAscender(float fontSize)
fontSize - The specified font size
public float getCapHeight(float fontSize)
fontSize - The specified font size
public float getDescender(float fontSize)
fontSize - The specified font size
public float getItalicAngle()
public float getBBoxLowerLeftX(float fontSize)
fontSize - The specified font size
public float getBBoxLowerLeftY(float fontSize)
fontSize - The specified font size
public float getBBoxUpperRightX(float fontSize)
fontSize - The specified font size
public float getBBoxUpperRightY(float fontSize)
fontSize - The specified font size
public float getLeading()
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||