Groups the glyph outlines a renderer collects from one run by SVG text chunk, so each chunk can be painted as one shape.
More...
#include "donner/svg/text/TextTypes.h"
|
| void | noteGlyph (const TextGlyph &glyph, std::size_t collected) |
| | Notes glyph before its outline, if any, is collected.
|
| std::vector< std::pair< std::size_t, std::size_t > > | ranges (std::size_t count) const |
| | Returns each chunk's half-open range of collected outlines, in order, skipping empty ones.
|
Groups the glyph outlines a renderer collects from one run by SVG text chunk, so each chunk can be painted as one shape.
Glyphs without an outline collect nothing and are only noted.
◆ noteGlyph()
| void donner::svg::TextChunkRanges::noteGlyph |
( |
const TextGlyph & | glyph, |
|
|
std::size_t | collected ) |
|
inline |
Notes glyph before its outline, if any, is collected.
- Parameters
-
| glyph | Glyph about to be collected. |
| collected | Number of outlines collected from the run so far. |
◆ ranges()
| std::vector< std::pair< std::size_t, std::size_t > > donner::svg::TextChunkRanges::ranges |
( |
std::size_t | count | ) |
const |
|
inlinenodiscard |
Returns each chunk's half-open range of collected outlines, in order, skipping empty ones.
- Parameters
-
| count | Number of outlines collected from the run. |
The documentation for this class was generated from the following file: