|
Cobbletext
0.2.0
Complex text layout and rendering engine
|
Properties for controlling output parameters on a struct CobbletextEngine instance.
More...
#include <engine_properties.h>
Public Attributes | |
| uint32_t | line_length |
| Line length in pixels. More... | |
| const char * | locale |
| Locale as a BCP 47 language tag. More... | |
| CobbletextTextAlignment | text_alignment |
| Controls the alignment of text in each line. More... | |
Properties for controlling output parameters on a struct CobbletextEngine instance.
| uint32_t CobbletextEngineProperties::line_length |
Line length in pixels.
If the value is 0, no word wrapping is performed. Otherwise, lines will be word wrapped at the given pixel width.
| const char* CobbletextEngineProperties::locale |
Locale as a BCP 47 language tag.
This value is used for assisting lower-level functions to tailor the presentation of the text to your application's user. It is typically the GUI's locale or a document's language.
The default is an empty string which indicates automatic detection of the user's locale if possible.
A tag is 2 characters or longer.
| CobbletextTextAlignment CobbletextEngineProperties::text_alignment |
Controls the alignment of text in each line.
Default is not specified.
1.8.17