Dt_bottom |
Adjust the body to the bottom of the rectangle. This value must be used in combination with dt_singleline. |
Dt_calcrect |
Determines the width and height of the rectangle. If the body contains multiple rows, drawtext uses the width of the rectangle defined by lprect and expands the bottom of the rectangle to accommodate the last row of the body. If the body contains only one row, drawtext changes the right border of the rectangle, to hold the last character of the next body. In any of the above cases, drawtext returns the height of the formatted body rather than the text. Before callingDrawtextBefore, the program must setRectOfRightAndBottomAttribute Value.DrawtextWill modify their values. |
Dt_center |
Center the body horizontally in the rectangle. |
Dt_end_ellipsis |
If the width of a string exceeds the width of the display area, the string is truncated and a ellipsis is added at the end. |
Dt_expandtabs |
Extended tab. A tab contains 8 characters by default. |
Dt_internal |
Use the system font to calculate the text size. |
Dt_left |
Place the text horizontally to the left of the rectangle. |
Dt_noclip |
No shear effect is used. When dt_noclip is usedDrawtextIt will run faster. |
Dt_noprefix |
Turns Off processing of prefix characters. Normally,DrawtextInterprets the mnemonic-Prefix Character & as a directive to underscore the character that follows, and the mnemonic-Prefix characters & as a directive to print a single &. by specifying dt_noprefix, this processing is turned off. |
Dt_right |
Align the text in the rectangle to the right. |
Dt_rtlreading |
When the Hebrew or Arabic font is selected, it is used to set the read sequence from right to left. By default, the reading sequence is left to right. |
Dt_singleline |
Only display text in one line. Ignore carriage return and line feed. |
Dt_tabstop |
Sets tab stops. Bits 8-15, which form the high-order byte of the low-order word, ofUformatParameter specify the number of characters for each tab. A tab contains 8 characters by default. It cannot be used with dt_calcrect, dt_externalleading, dt_internal, dt_noclip, or dt_noprefix. |
Dt_top |
Align the top of the body. This value must be used in combination with dt_singleline. |
Dt_vcenter |
To vertically center the body in a rectangle, This value must be used in combination with dt_singleline. |
Dt_word_ellipsis |
If the width of a word exceeds the width of the display area, the word is truncated and an ellipsis is added at the end. |
Dt_wordbreak |
Word disconnected. This line is automatically disconnected when the characters in a row extend to the rect border. Line breaks can also be performed by carriage return. |