|
enum | Charset {
e_CharsetANSI = 0,
e_CharsetDefault = 1,
e_CharsetSymbol = 2,
e_CharsetShift_JIS = 128,
e_CharsetHangeul = 129,
e_CharsetGB2312 = 134,
e_CharsetChineseBig5 = 136,
e_CharsetThai = 222,
e_CharsetEastEurope = 238,
e_CharsetRussian = 204,
e_CharsetGreek = 161,
e_CharsetTurkish = 162,
e_CharsetHebrew = 177,
e_CharsetArabic = 178,
e_CharsetBaltic = 186
} |
| Enumeration for font charset. More...
|
|
enum | CIDCharset {
e_CIDCharsetUnknown = 0,
e_CIDCharsetGB1 = 1,
e_CIDCharsetCNS1 = 2,
e_CIDCharsetJAPAN1 = 3,
e_CIDCharsetKOREA1 = 4,
e_CIDCharsetUNICODE = 5
} |
| Enumeration for CID font charset. More...
|
|
enum | FontTypes { e_FontTypeType1 = 1,
e_FontTypeTrueType = 2,
e_FontTypeType3 = 3,
e_FontTypeCIDFont = 4
} |
| Enumeration for font type. More...
|
|
enum | StandardID {
e_StdIDCourier = 0,
e_StdIDCourierB = 1,
e_StdIDCourierBI = 2,
e_StdIDCourierI = 3,
e_StdIDHelvetica = 4,
e_StdIDHelveticaB = 5,
e_StdIDHelveticaBI = 6,
e_StdIDHelveticaI = 7,
e_StdIDTimes = 8,
e_StdIDTimesB = 9,
e_StdIDTimesBI = 10,
e_StdIDTimesI = 11,
e_StdIDSymbol = 12,
e_StdIDZapfDingbats = 13
} |
| Enumeration for standard font ID. More...
|
|
enum | Styles {
e_StyleFixedPitch = 0x0001,
e_StyleSerif = 0x0002,
e_StyleSymbolic = 0x0004,
e_StyleScript = 0x0008,
e_StyleNonSymbolic = 0x0020,
e_StyleItalic = 0x0040,
e_StyleAllCap = 0x10000,
e_StylesSmallCap = 0x20000,
e_StylesBold = 0x40000
} |
| Enumeration for font styles. More...
|
|
|
| Font (const wchar_t *name, uint32 styles, Charset charset, int weight) |
| Constructor, with given attribute. More...
|
|
| Font (StandardID font_id) |
| Constructor, by a standard font ID. More...
|
|
| Font (const char *font_file_path, int face_index, Charset charset) |
| Constructor, from a font file. More...
|
|
| Font (const wchar_t *font_file_path, int face_index, Charset charset) |
| Constructor, from a font file. More...
|
|
| Font (const Font &other) |
| Constructor, with another font object. More...
|
|
| ~Font () |
| Destructor.
|
|
Font | Embed (pdf::PDFDoc document) |
| Embed current font to the specified PDF document. More...
|
|
int | GetAscent () const |
| Get the ascent value, in 1/1000 of em size (PDF units). More...
|
|
String | GetBaseFontName (const pdf::PDFDoc &document) |
| Get base font name. More...
|
|
RectI | GetCharBBox (uint32 unicode) const |
| Get the bounding box of a character specified by unicode. More...
|
|
RectI | GetCharBBox (foxit::uint32 unicode, const foxit::pdf::PDFDoc &document) |
| Get the bounding box of a character that in document specified by unicode. More...
|
|
float | GetCharWidth (uint32 unicode) const |
| Get the width (in 1/1000 of em size (PDF units)) of a character specified by unicode. More...
|
|
float | GetCharWidth (foxit::uint32 unicode, const foxit::pdf::PDFDoc &document) |
| Get the width (in 1/1000 of em size (PDF units)) of a character that in document specified by unicode. More...
|
|
CIDCharset | GetCIDCharset (const pdf::PDFDoc &document) |
| Get CID font charset. More...
|
|
int | GetDescent () const |
| Get the descent value, in 1/1000 of em size (PDF units). More...
|
|
String | GetFamilyName () |
| Retrieve the famliy name. More...
|
|
FontTypes | GetFontType (const pdf::PDFDoc &document) |
| Get font type. More...
|
|
WString | GetName () |
| Retrieve the postscript name. More...
|
|
StandardID | GetStandard14Font (const pdf::PDFDoc &document) |
| Get standard font ID. More...
|
|
foxit::uint32 | GetStyles (const pdf::PDFDoc &document) |
| Get font styles. More...
|
|
bool | IsBold () const |
| Judge whether current font is bold or not. More...
|
|
bool | IsEmbedded (const pdf::PDFDoc &document) |
| Judge whether current font is embedded in a specified PDF document or not. More...
|
|
bool | IsEmpty () const |
| Check whether current object is empty or not. More...
|
|
bool | IsItalic () const |
| Judge whether current font object is italic or not. More...
|
|
bool | IsStandardFont (const pdf::PDFDoc &document) |
| Check whether current font is a standard font. More...
|
|
bool | IsSupportEmbedded (const pdf::PDFDoc &document) |
| Check whether current font is supported to be embedded to the specified PDF document or not. More...
|
|
bool | operator != (const Font &other) const |
| Not equal operator. More...
|
|
Font & | operator= (const Font &other) |
| Assign operator. More...
|
|
bool | operator== (const Font &other) const |
| Equal operator. More...
|
|
FS_HANDLE | Handle () const |
| Get the handle of current object. 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.