151    double blockWidth( 
int blockIndex ) 
const;
 
  156    double blockHeight( 
int blockIndex ) 
const;
 
  163    double firstLineCapHeight() 
const;
 
  175    double fragmentHorizontalAdvance( 
int blockIndex, 
int fragmentIndex, 
Qgis::TextLayoutMode mode ) 
const;
 
  183    double fragmentVerticalOffset( 
int blockIndex, 
int fragmentIndex, 
Qgis::TextLayoutMode mode ) 
const;
 
  190    double fragmentFixedHeight( 
int blockIndex, 
int fragmentIndex, 
Qgis::TextLayoutMode mode ) 
const;
 
  213    double verticalOrientationXOffset( 
int blockIndex ) 
const;
 
  218    double blockMaximumCharacterWidth( 
int blockIndex ) 
const;
 
  225    double blockMaximumDescent( 
int blockIndex ) 
const;
 
  233    double blockMaximumAscent( 
int blockIndex ) 
const;
 
  238    QFont fragmentFont( 
int blockIndex, 
int fragmentIndex ) 
const;
 
  256    double blockVerticalMargin( 
int blockIndex ) 
const;
 
  266    double blockLeftMargin( 
int blockIndex ) 
const;
 
  276    double blockRightMargin( 
int blockIndex ) 
const;
 
  282    bool mIsNullSize = 
false;
 
  284    QSizeF mDocumentSizeLabelMode;
 
  285    QSizeF mDocumentSizePointRectMode;
 
  286    QSizeF mDocumentSizeVerticalOrientation;
 
  287    QSizeF mDocumentSizeCapHeightMode;
 
  288    QSizeF mDocumentSizeAscentMode;
 
  290    QRectF mOuterBoundsLabelMode;
 
  292    QList < QList< QFont > > mFragmentFonts;
 
  293    QList< double > mBlockWidths;
 
  294    QList< double > mBlockHeights;
 
  295    QList< double > mBaselineOffsetsLabelMode;
 
  296    QList< double > mBaselineOffsetsPointMode;
 
  297    QList< double > mBaselineOffsetsRectMode;
 
  298    QList< double > mBaselineOffsetsCapHeightMode;
 
  299    QList< double > mBaselineOffsetsAscentBased;
 
  301    QList< QList< double > > mFragmentHorizontalAdvance;
 
  302    QList< QList< double > > mFragmentFixedHeights;
 
  304    QList< QList< double > > mFragmentVerticalOffsetsLabelMode;
 
  305    QList< QList< double > > mFragmentVerticalOffsetsPointMode;
 
  306    QList< QList< double > > mFragmentVerticalOffsetsRectMode;
 
  308    QList< QList< double > > mFragmentAscent;
 
  309    QList< QList< double > > mFragmentDescent;
 
  311    QList< double > mVerticalOrientationXOffsets;
 
  312    QList< double > mBlockMaxDescent;
 
  313    QList< double > mBlockMaxAscent;
 
  314    QList< double > mBlockMaxCharacterWidth;
 
  315    double mFirstLineAscentOffset = 0;
 
  316    double mLastLineAscentOffset = 0;
 
  317    double mFirstLineCapHeight = 0;
 
  319    QVector< double > mVerticalMarginsBetweenBlocks;
 
  320    QVector< double > mLeftBlockMargins;
 
  321    QVector< double > mRightBlockMargins;
 
 
Contains information about the context of a rendering operation.
 
Represents a block of text consisting of one or more QgsTextFragment objects.
 
Contains pre-calculated metrics of a QgsTextDocument.
 
bool isNullFontSize() const
Returns true if the metrics could not be calculated because the text format has a null font size.
 
const QgsTextDocument & document() const
Returns the document associated with the calculated metrics.
 
double ascentOffset() const
Returns the ascent offset of the first block in the document.
 
Encapsulates the context in which a text document is to be rendered.
 
void setFlags(Qgis::TextRendererFlags flags)
Sets associated text renderer flags.
 
Qgis::TextRendererFlags flags() const
Returns associated text renderer flags.
 
void setMaximumWidth(double width)
Sets the maximum width (in painter units) for rendered text.
 
double maximumWidth() const
Returns the maximum width (in painter units) for rendered text.
 
Represents a document consisting of one or more QgsTextBlock objects.
 
Stores a fragment of document along with formatting overrides to be used when rendering the fragment.