Contains information about the context of a rendering operation.
void setText(const QString &text)
Sets the text content of the fragment.
QString text() const
Returns the text content of the fragment.
const QgsTextCharacterFormat & characterFormat() const
Returns the character formatting for the fragment.
QgsTextFragment(const QString &text=QString(), const QgsTextCharacterFormat &format=QgsTextCharacterFormat())
Constructor for QgsTextFragment, with the specified text and optional character format.
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...