TextFrame & operator=(TextFrame &&other)=default
bool HasColor() const
Returns the paint color this text frame was recorded with.
Represents a collection of shaped text runs.
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.
size_t GetRunCount() const
The number of runs in this text frame.
static Scalar RoundScaledFontSize(Scalar scale, Scalar point_size)
void CollectUniqueFontGlyphPairs(FontGlyphMap &glyph_map, Scalar scale, Point offset, const GlyphProperties &properties) const
Rect GetBounds() const
The conservative bounding box for this text frame.
GlyphAtlas::Type GetAtlasType() const
The type of atlas this run should be emplaced in.