|
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.TrueTypeFont
Provides the TrueTypeFont for the PDF
| Field Summary |
| Fields inherited from class com.elegantj.pdf.PDFFont |
BOLD, BOLDITALIC, IDENTITY_H, IDENTITY_V, ITALIC, MACROMAN, REGULAR, WINANSI |
| Constructor Summary | |
protected |
TrueTypeFont()
Default constructor |
|
TrueTypeFont(java.lang.String filePath,
int style,
java.lang.String encoding,
boolean embedded,
boolean subset)
Constructs the TrueTypeFont from the specified filePath, style, encoding and option to subset |
| 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 |
int |
getGlyphWidth(int glyph)
Returns the glyph width at the specified glyph |
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 |
boolean |
isEmbedded()
Returns wheather font is embedded or not |
boolean |
isSubset()
Returns wheather embedded font file is subset or not subset means the characters which are used in pdf only included to the pdf |
| 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 |
| Constructor Detail |
protected TrueTypeFont()
public TrueTypeFont(java.lang.String filePath,
int style,
java.lang.String encoding,
boolean embedded,
boolean subset)
throws java.lang.Exception,
java.io.IOException
filePath - The specified TrueType font file pathstyle - The specified style Possible vlaues are REGULAR, BOLD, ITALIC, BOLDITALIC
If the font is embedded then the style is not workingencoding - The specified encodingembedded - Option to wheather font is embedded to the PDF or not, If the embedded
value is true then Font is embedded to the PDF file otherwise to see proper font
into PDF, font must on end system| Method Detail |
public int getGlyphWidth(int glyph)
glyph - The specified glyph
public boolean isSubset()
public boolean isEmbedded()
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 | |||||||||