Foxit PDF SDK
|
Inherits Object.
Public Types | |
enum | TextCharFlag { e_Unknown = -1, e_Normal = 0, e_Generated = 1, e_UnUnicode = 2, e_Hyphen = 3, e_ComboWord = 4 } |
Enumeration for PDF textpage character flag. More... | |
Public Member Functions | |
TextPageCharInfo () | |
Constructor. | |
TextPageCharInfo (const common::Font &font, TextCharFlag flag, float font_size, float origin_x, float origin_y, const RectF &char_box, const RectF &char_outbox, const Matrix &matrix) | |
Constructor, with parameters. More... | |
TextPageCharInfo (const TextPageCharInfo &char_info) | |
Constructor, with another character information object. More... | |
bool | operator!= (const TextPageCharInfo &char_info) const |
Not equal operator. More... | |
TextPageCharInfo & | operator= (const TextPageCharInfo &char_info) |
Assign operator. More... | |
bool | operator== (const TextPageCharInfo &char_info) const |
Equal operator. More... | |
void | Set (const common::Font &font, TextCharFlag flag, float font_size, float origin_x, float origin_y, const RectF &char_box, const RectF &char_outbox, const Matrix &matrix) |
Set value. More... | |
Public Attributes | |
RectF | char_box |
The glyph bounding box in page space. | |
RectF | char_outbox |
The typographic(display and printing) bounding box in page space. | |
TextCharFlag | flag |
Flags to indicate which properties of textpage character flag are meaningful. More... | |
common::Font | font |
A font for character. | |
float | font_size |
Font size for character. More... | |
Matrix | matrix |
The matrix of the character. | |
float | origin_x |
The x-coordinate of the origin position. | |
float | origin_y |
The y-coordinate of the origin position. | |
This class represents textpage character information.
Enumeration for PDF textpage character flag.
Values of this enumeration should be used alone.
|
inline |
Constructor, with parameters.
[in] | font | A valid font object. |
[in] | flag | Flags to indicate which properties of textpage character flag are meaningful. Please refer to values starting from TextPageCharInfo::e_Normal and this should be one of these values except TextPageCharInfo::e_Unknown. |
[in] | font_size | Font size. This should be a positive value. |
[in] | origin_x | The x-coordinate of the origin position. |
[in] | origin_y | The y-coordinate of the origin position. |
[in] | char_box | The glyph bounding box in page space. |
[in] | char_outbox | The typographic (display and printing) bounding box in page space. The width is advance width, and the height is the sum of the ascent and descent. |
[in] | matrix | The matrix. |
|
inline |
Constructor, with another character information object.
[in] | char_info | Another character information object. |
|
inline |
Not equal operator.
[in] | char_info | Another character information object. This function will check if current object is not equal to this one. |
|
inline |
Assign operator.
[in] | char_info | Another character information object, whose value would be assigned to current object. |
|
inline |
Equal operator.
[in] | char_info | Another character information object. This function will check if current object is equal to this one. |
|
inline |
Set value.
[in] | font | A valid font object. |
[in] | flag | Flags to indicate which properties of textpage character flag are meaningful. Please refer to values starting from TextPageCharInfo::e_Normal and this should be one of these values except TextPageCharInfo::e_Unknown. |
[in] | font_size | Font size. This should be a positive value. |
[in] | origin_x | The x-coordinate of the origin position. |
[in] | origin_y | The y-coordinate of the origin position. |
[in] | char_box | The glyph bounding box in page space. |
[in] | char_outbox | The typographic (display and printing) bounding box in page space. The width is advance width, and the height is the sum of the ascent and descent. |
[in] | matrix | The matrix. |
TextCharFlag foxit::pdf::TextPageCharInfo::flag |
Flags to indicate which properties of textpage character flag are meaningful.
Please refer to values starting from TextPageCharInfo::e_Normal and this should be one of these values.
float foxit::pdf::TextPageCharInfo::font_size |
Font size for character.
This value would a positive value.