|
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.CJKFont
CJKFont provides the CJKFont/Type0 font for the PDF Using this class one can use builtin fonts like Chinese, Japanese and Korean
| Field Summary | |
static int |
HEISEIKAKUGO_W5
The font, Represent the HeiseiIkakugo_W5 Japanese font |
static int |
HEISEIMIN_W3
The font, Represent the HeiseiMin_W3 Japanese font |
static int |
HYGOTHIC_MEDIUM
The font, Represent the HYGoThic_Medium Korean font |
static int |
HYSMYEONGJO_MEDIUM
The font, Represent the HYSMyeongJo_Medium Korean font |
static int |
HYSMYEONGJOSTD_MEDIUM
The font, Represent the HYSMyeongJoStd_Medium Korean font |
static int |
KOZMINPRO_REGULAR
The font, Represent the KozMinPro_Regular Japanese font |
static int |
MHEI_MEDIUM
The font, Represent the MHei_Medium Chinese font |
static int |
MSUNG_LIGHT
The font, Represent the MSung_Light Chinese font |
static int |
MSUNGSTD_LIGHT
The font, Represent the MSungStd_Light Chinese font |
static int |
STSONG_LIGHT
The font, Represent the STSONG_LIGHT Chinese font |
static int |
STSONGSTD_LIGHT
The font, Represent the STSongStd_Light Chinese font |
| Fields inherited from class com.elegantj.pdf.PDFFont |
BOLD, BOLDITALIC, IDENTITY_H, IDENTITY_V, ITALIC, MACROMAN, REGULAR, WINANSI |
| Constructor Summary | |
CJKFont(int font,
int style)
Constructs the CJKFont from the specified font, style |
|
| 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 |
char |
getCIDCode(char c)
Returns the CID code of the specified char |
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.PDFFont |
getCharWidth, getCharWidth |
| 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 int HEISEIMIN_W3
public static final int HEISEIKAKUGO_W5
public static final int KOZMINPRO_REGULAR
public static final int STSONG_LIGHT
public static final int STSONGSTD_LIGHT
public static final int MHEI_MEDIUM
public static final int MSUNG_LIGHT
public static final int MSUNGSTD_LIGHT
public static final int HYGOTHIC_MEDIUM
public static final int HYSMYEONGJO_MEDIUM
public static final int HYSMYEONGJOSTD_MEDIUM
| Constructor Detail |
public CJKFont(int font,
int style)
throws java.lang.Exception,
java.io.IOException
font - The specified fontstyle - The specified style| Method Detail |
public int getStringWidth(java.lang.String text)
getStringWidth in class PDFFont
public float getStringWidth(java.lang.String text,
float fontSize)
getStringWidth in class PDFFontpublic 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 PDFFontpublic char getCIDCode(char c)
c - The specified char
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||