Represents a collection of shaped text runs.
Rect GetBounds() const
The conservative bounding box for this text frame.
static Scalar RoundScaledFontSize(Scalar scale, Scalar point_size)
GlyphAtlas::Type GetAtlasType() const
The type of atlas this run should be emplaced in.
TextFrame & operator=(TextFrame &&other)=default
void CollectUniqueFontGlyphPairs(FontGlyphMap &glyph_map, Scalar scale) const
bool MaybeHasOverlapping() const
Whether any of the glyphs of this run are potentially overlapping.
TextFrame(const TextFrame &other)=default
size_t GetRunCount() const
The number of runs in this text frame.
const std::vector< TextRun > & GetRuns() const
Returns a reference to all the text runs in this frame.