Functions | |
| int | SPI_TXT_length_text (const std::string &text, double textHeight, double textRatio, const std::string &fontName, double *length) |
| Calculates the length of a text. | |
| int | SPI_TXT_frame_text (int mode, double *pt, double textHeight, double textRatio, double textAngle, double slantAngle, int adjust, const std::string &fontName, const std::string &text, double *boundingRect) |
| Calculates the bounding rectangle of a text. | |
Text utilities
| int SPI_TXT_frame_text | ( | int | mode, |
| double * | pt, | ||
| double | textHeight, | ||
| double | textRatio, | ||
| double | textAngle, | ||
| double | slantAngle, | ||
| int | adjust, | ||
| const std::string & | fontName, | ||
| const std::string & | text, | ||
| double * | boundingRect ) |
Calculates the bounding rectangle of a text.
| [in] | mode | creation mode of the rectangle
|
| [in] | pt | user position of the text |
| [in] | textHeight | text height |
| [in] | textRatio | text ratio |
| [in] | textAngle | text direction |
| [in] | slantAngle | italic angle |
| [in] | adjust | text attachment mode |
| [in] | fontName | text font |
| [in] | text | text |
| [out] | boundingRect | enclosing rectangle |
| int SPI_TXT_length_text | ( | const std::string & | text, |
| double | textHeight, | ||
| double | textRatio, | ||
| const std::string & | fontName, | ||
| double * | length ) |
Calculates the length of a text.
| [in] | text | text to measure |
| [in] | textHeight | text height |
| [in] | textRatio | text ratio |
| [in] | fontName | text font |
| [out] | length | text length |