Result of laying out a line of text — position and metrics for each glyph. More...
#include <text_layout.hpp>
Public Attributes | |
| float | x = 0 |
| float | y = 0 |
| Position relative to the line origin. | |
| float | advance = 0 |
| Horizontal advance to next glyph. | |
| uint32_t | codepoint = 0 |
| Unicode codepoint. | |
| size_t | text_index = 0 |
| Index into the source text. | |
Result of laying out a line of text — position and metrics for each glyph.
| float pulp::canvas::GlyphPosition::advance = 0 |
Horizontal advance to next glyph.
| uint32_t pulp::canvas::GlyphPosition::codepoint = 0 |
Unicode codepoint.
| size_t pulp::canvas::GlyphPosition::text_index = 0 |
Index into the source text.
| float pulp::canvas::GlyphPosition::x = 0 |
| float pulp::canvas::GlyphPosition::y = 0 |
Position relative to the line origin.