|
enum | Charset {
Charset.e_CharsetANSI = 0,
Charset.e_CharsetDefault = 1,
Charset.e_CharsetSymbol = 2,
Charset.e_CharsetShift_JIS = 128,
Charset.e_CharsetHangeul = 129,
Charset.e_CharsetGB2312 = 134,
Charset.e_CharsetChineseBig5 = 136,
Charset.e_CharsetThai = 222,
Charset.e_CharsetEastEurope = 238,
Charset.e_CharsetRussian = 204,
Charset.e_CharsetGreek = 161,
Charset.e_CharsetTurkish = 162,
Charset.e_CharsetHebrew = 177,
Charset.e_CharsetArabic = 178,
Charset.e_CharsetBaltic = 186
} |
| Enumeration for font charset. More...
|
|
enum | CIDCharset {
CIDCharset.e_CIDCharsetUnknown = 0,
CIDCharset.e_CIDCharsetGB1 = 1,
CIDCharset.e_CIDCharsetCNS1 = 2,
CIDCharset.e_CIDCharsetJAPAN1 = 3,
CIDCharset.e_CIDCharsetKOREA1 = 4,
CIDCharset.e_CIDCharsetUNICODE = 5
} |
| Enumeration for CID font charset. More...
|
|
enum | FontTypes { FontTypes.e_FontTypeType1 = 1,
FontTypes.e_FontTypeTrueType = 2,
FontTypes.e_FontTypeType3 = 3,
FontTypes.e_FontTypeCIDFont = 4
} |
| Enumeration for font type. More...
|
|
enum | StandardID {
StandardID.e_StdIDCourier = 0,
StandardID.e_StdIDCourierB = 1,
StandardID.e_StdIDCourierBI = 2,
StandardID.e_StdIDCourierI = 3,
StandardID.e_StdIDHelvetica = 4,
StandardID.e_StdIDHelveticaB = 5,
StandardID.e_StdIDHelveticaBI = 6,
StandardID.e_StdIDHelveticaI = 7,
StandardID.e_StdIDTimes = 8,
StandardID.e_StdIDTimesB = 9,
StandardID.e_StdIDTimesBI = 10,
StandardID.e_StdIDTimesI = 11,
StandardID.e_StdIDSymbol = 12,
StandardID.e_StdIDZapfDingbats = 13
} |
| Enumeration for standard font ID. More...
|
|
enum | Styles {
Styles.e_StyleFixedPitch = 0x0001,
Styles.e_StyleSerif = 0x0002,
Styles.e_StyleSymbolic = 0x0004,
Styles.e_StyleScript = 0x0008,
Styles.e_StyleNonSymbolic = 0x0020,
Styles.e_StyleItalic = 0x0040,
Styles.e_StyleAllCap = 0x10000,
Styles.e_StylesSmallCap = 0x20000,
Styles.e_StylesBold = 0x40000
} |
| Enumeration for font styles. More...
|
|
|
| Font (string name, int styles, Font.Charset charset, int weight) |
| Constructor, with given attribute. More...
|
|
| Font (Font.StandardID font_id) |
| Constructor, by a standard font ID. More...
|
|
| Font (string font_file_path, int face_index, Font.Charset charset) |
| Constructor, from a font file. More...
|
|
| Font (Font other) |
| Constructor, with another font object. More...
|
|
Font | Embed (PDFDoc document) |
| Embed current font to the specified PDF document. More...
|
|
int | GetAscent () |
| Get the ascent value, in 1/1000 of em size (PDF units). More...
|
|
string | GetBaseFontName (PDFDoc document) |
| Get base font name. More...
|
|
RectI | GetCharBBox (int unicode) |
| Get the bounding box of a character specified by unicode. More...
|
|
RectI | GetCharBBox (int unicode, PDFDoc document) |
| Get the bounding box of a character(specified by unicode) in a PDF document. More...
|
|
float | GetCharWidth (int unicode) |
| Get the width (in 1/1000 of em size (PDF units)) of a character specified by unicode. More...
|
|
float | GetCharWidth (int unicode, PDFDoc document) |
| Get the width (in 1/1000 of em size, as PDF units) of a character (specified by unicode) in a PDF document. More...
|
|
Font.CIDCharset | GetCIDCharset (PDFDoc document) |
| Get CID font charset. More...
|
|
int | GetDescent () |
| Get the descent value, in 1/1000 of em size (PDF units). More...
|
|
string | GetFamilyName () |
| Retrieve the famliy name. More...
|
|
Font.FontTypes | GetFontType (PDFDoc document) |
| Get font type. More...
|
|
string | GetName () |
| Retrieve the postscript name. More...
|
|
Font.StandardID | GetStandard14Font (PDFDoc document) |
| Get standard font ID. More...
|
|
int | GetStyles (PDFDoc document) |
| Get font styles. More...
|
|
bool | IsBold () |
| Judge whether current font is bold or not. More...
|
|
bool | IsEmbedded (PDFDoc document) |
| Judge whether current font is embedded in a specified PDF document or not. More...
|
|
bool | IsEmpty () |
| Check whether current object is empty or not. More...
|
|
bool | IsItalic () |
| Judge whether current font object is italic or not. More...
|
|
bool | IsStandardFont (PDFDoc document) |
| Check whether current font is a standard font. More...
|
|
bool | IsSupportEmbedded (PDFDoc document) |
| Check whether current font is supported to be embedded to the specified PDF document or not. More...
|
|
bool | IsVertWriting (PDFDoc document) |
| Check whether current font is vertical writing. More...
|
|
In PDF document, font is used for drawing text in PDF page.
This class represents font used in Foxit PDF SDK. This class offers different constructor for user to construct a new font object, by specified parameters, by standard font ID, or from a font file path. A font object can also be retrieved directly from other object (such as free text annotation, a text graphics object, etc) in a PDF document. This class also offers some functions to get some basic information from a font.