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
bool HasColor() const
Returns the paint color this text frame was recorded with.
void CollectUniqueFontGlyphPairs(FontGlyphMap &glyph_map, Scalar scale, Point offset, const GlyphProperties &properties) const
TextFrame(const TextFrame &other)=default
size_t GetRunCount() const
The number of runs in this text frame.
static Point ComputeSubpixelPosition(const TextRun::GlyphPosition &glyph_position, AxisAlignment alignment, Point offset, Scalar scale)
const std::vector< TextRun > & GetRuns() const
Returns a reference to all the text runs in this frame.