Represents a collection of positioned glyphs from a specific font. More...
#include <text_run.h>
Classes | |
| struct | GlyphPosition |
Public Member Functions | |
| TextRun (const Font &font) | |
| Create an empty text run with the specified font. More... | |
| TextRun (const Font &font, std::vector< GlyphPosition > &glyphs) | |
| ~TextRun () | |
| bool | IsValid () const |
| bool | AddGlyph (Glyph glyph, Point position) |
| Add a glyph at the specified position to the run. More... | |
| size_t | GetGlyphCount () const |
| Get the number of glyphs in the run. More... | |
| const std::vector< GlyphPosition > & | GetGlyphPositions () const |
| Get a reference to all the glyph positions within the run. More... | |
| const Font & | GetFont () const |
| Get the font for this run. More... | |
Represents a collection of positioned glyphs from a specific font.
Definition at line 20 of file text_run.h.
|
explicit |
Create an empty text run with the specified font.
| [in] | font | The font |
Definition at line 9 of file text_run.cc.
References impeller::Font::IsValid().
| impeller::TextRun::TextRun | ( | const Font & | font, |
| std::vector< GlyphPosition > & | glyphs | ||
| ) |
|
default |
Add a glyph at the specified position to the run.
| [in] | glyph | The glyph |
| [in] | position | The position |
Definition at line 26 of file text_run.cc.
| const Font & impeller::TextRun::GetFont | ( | ) | const |
| size_t impeller::TextRun::GetGlyphCount | ( | ) | const |
Get the number of glyphs in the run.
Definition at line 39 of file text_run.cc.
| const std::vector< TextRun::GlyphPosition > & impeller::TextRun::GetGlyphPositions | ( | ) | const |
Get a reference to all the glyph positions within the run.
Definition at line 35 of file text_run.cc.
| bool impeller::TextRun::IsValid | ( | ) | const |
Definition at line 31 of file text_run.cc.