This is a group of methods related to text layout.
◆ getAlignment()
| Align OpenFontRender::getAlignment |
( |
| ) |
|
Get the current text alignment.
- Returns
- Current text alignment.
- See also
- Align
◆ getBackgroundFillMethod()
Get the current background fill method.
- Returns
- Current background fill method.
- See also
- BgFillMethod
◆ getLayout()
| Layout OpenFontRender::getLayout |
( |
| ) |
|
Get the current direction of text writing.
- Returns
- Current direction of text writing.
- See also
- Layout
◆ setAlignment()
| void OpenFontRender::setAlignment |
( |
Align |
align | ) |
|
Set the text alignment.
- Parameters
-
| [in] | (align) | Text alignment. |
- See also
- Align
- Note
- Default is
TopLeft.
◆ setBackgroundFillMethod()
| void OpenFontRender::setBackgroundFillMethod |
( |
BgFillMethod |
method | ) |
|
Set the background fill method.
- Parameters
-
| [in] | (method) | Method of filling background. |
- See also
- BgFillMethod
- Note
- Default is
None.
◆ setLayout()
| void OpenFontRender::setLayout |
( |
Layout |
layout | ) |
|
Set the direction of text writing.
- Parameters
-
| [in] | (layout) | Direction of text writing. |
- See also
- Layout
- Note
- Default is
Horizontal.
- Attention
Vertical is not yet supported (will be implemented in the future).