Fonctions | |
| int | SPI_TXT_length_text (const std::string &text, double textHeight, double textRatio, const std::string &fontName, double *length) |
| Calcule la longueur d'un texte. | |
| 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) |
| Calcule le rectangle englobant d'un texte. | |
Utilitaires texte
| 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 ) |
Calcule le rectangle englobant d'un texte.
| [in] | mode | mode de création du rectangle
|
| [in] | pt | position du texte |
| [in] | textHeight | hauteur du texte |
| [in] | textRatio | ratio du texte |
| [in] | textAngle | direction du texte |
| [in] | slantAngle | angle d'italic |
| [in] | adjust | mode d'attachement du texte |
| [in] | fontName | police de caractère du texte |
| [in] | text | texte |
| [out] | boundingRect | rectangle englobant |
| int SPI_TXT_length_text | ( | const std::string & | text, |
| double | textHeight, | ||
| double | textRatio, | ||
| const std::string & | fontName, | ||
| double * | length ) |
Calcule la longueur d'un texte.
| [in] | text | texte à mesurer |
| [in] | textHeight | hauteur du texte |
| [in] | textRatio | ratio du texte |
| [in] | fontName | police de caractère du texte |
| [out] | length | longueur du texte |