Open Font Render 1.2
Loading...
Searching...
No Matches
Text-layout-related APIs

Functions

void OpenFontRender::setBackgroundFillMethod (BgFillMethod method)
 Set the background fill method.
 
BgFillMethod OpenFontRender::getBackgroundFillMethod ()
 Get the current background fill method.
 
void OpenFontRender::setLayout (Layout layout)
 Set the direction of text writing.
 
Layout OpenFontRender::getLayout ()
 Get the current direction of text writing.
 
void OpenFontRender::setAlignment (Align align)
 Set the text alignment.
 
Align OpenFontRender::getAlignment ()
 Get the current text alignment.
 

Detailed Description

This is a group of methods related to text layout.

Function Documentation

◆ getAlignment()

Align OpenFontRender::getAlignment ( )

Get the current text alignment.

Returns
Current text alignment.
See also
Align

◆ getBackgroundFillMethod()

BgFillMethod OpenFontRender::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).