Structure for layout of a single character for text rendering. More...
#include <kanzi/core.ui/text/text_layout.hpp>
Public Attributes | |
bool | addedDuringLayouting |
Flag to determine whether character is part of the input text, or it was added during layouting, for example, due to overflow. More... | |
unsigned int | character |
Character glyph index in a font. More... | |
unsigned int | clusterEnd |
Index of the character in the input text that starts the next cluster, or length of the input text if this is the last cluster. More... | |
unsigned int | clusterStart |
Index of the first character in the input text that is part of this cluster. More... | |
bool | leftToRight |
True if the character has left-to-right layout, false otherwise. More... | |
float | x |
X axis coordinate of the left side of a character. More... | |
float | y |
Y axis coordinate of the bottom of a character. More... | |
Structure for layout of a single character for text rendering.
float kanzi::CharacterLayout::x |
X axis coordinate of the left side of a character.
float kanzi::CharacterLayout::y |
Y axis coordinate of the bottom of a character.
unsigned int kanzi::CharacterLayout::character |
Character glyph index in a font.
unsigned int kanzi::CharacterLayout::clusterStart |
Index of the first character in the input text that is part of this cluster.
See https://harfbuzz.github.io/clusters.html for more information.
unsigned int kanzi::CharacterLayout::clusterEnd |
Index of the character in the input text that starts the next cluster, or length of the input text if this is the last cluster.
bool kanzi::CharacterLayout::leftToRight |
True if the character has left-to-right layout, false otherwise.
bool kanzi::CharacterLayout::addedDuringLayouting |
Flag to determine whether character is part of the input text, or it was added during layouting, for example, due to overflow.
This is set to true if the character was added during layouting and false if the character is part of the input text.