Contains information about the context of a rendering operation.
Stores a fragment of text along with formatting overrides to be used when rendering the fragment.
const QgsTextCharacterFormat & characterFormat() const
Returns the character formatting for the fragment.