82 double blockWidth(
int blockIndex )
const;
87 double blockHeight(
int blockIndex )
const;
94 double firstLineCapHeight()
const;
106 double fragmentHorizontalAdvance(
int blockIndex,
int fragmentIndex,
Qgis::TextLayoutMode mode )
const;
114 double fragmentVerticalOffset(
int blockIndex,
int fragmentIndex,
Qgis::TextLayoutMode mode )
const;
119 double verticalOrientationXOffset(
int blockIndex )
const;
124 double blockMaximumCharacterWidth(
int blockIndex )
const;
129 double blockMaximumDescent(
int blockIndex )
const;
134 QFont fragmentFont(
int blockIndex,
int fragmentIndex )
const;
143 bool mIsNullSize =
false;
145 QSizeF mDocumentSizeLabelMode;
146 QSizeF mDocumentSizePointRectMode;
147 QSizeF mDocumentSizeVerticalOrientation;
148 QSizeF mDocumentSizeCapHeightMode;
149 QSizeF mDocumentSizeAscentMode;
151 QRectF mOuterBoundsLabelMode;
153 QList < QList< QFont > > mFragmentFonts;
154 QList< double > mBlockWidths;
155 QList< double > mBlockHeights;
156 QList< double > mBaselineOffsetsLabelMode;
157 QList< double > mBaselineOffsetsPointMode;
158 QList< double > mBaselineOffsetsRectMode;
159 QList< double > mBaselineOffsetsCapHeightMode;
160 QList< double > mBaselineOffsetsAscentBased;
162 QList< QList< double > > mFragmentHorizontalAdvance;
164 QList< QList< double > > mFragmentVerticalOffsetsLabelMode;
165 QList< QList< double > > mFragmentVerticalOffsetsPointMode;
166 QList< QList< double > > mFragmentVerticalOffsetsRectMode;
168 QList< double > mVerticalOrientationXOffsets;
169 QList< double > mBlockMaxDescent;
170 QList< double > mBlockMaxCharacterWidth;
171 double mFirstLineAscentOffset = 0;
172 double mLastLineAscentOffset = 0;
173 double mFirstLineCapHeight = 0;
Contains information about the context of a rendering operation.
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.
double ascentOffset() const
Returns the ascent offset of the first block in the document.
Represents a document consisting of one or more QgsTextBlock objects.