Contains information about the context of a rendering operation.
 
Stores a fragment of document along with formatting overrides to be used when rendering the fragment.
 
const QgsTextCharacterFormat & characterFormat() const
Returns the character formatting for the fragment.
 
bool isTab() const
Returns true if the fragment consists of just a tab character.
 
bool isWhitespace() const
Returns true if the fragment consists of just whitespace characters, and does not contain any content...