16#ifndef QGSTEXTDOCUMENTMETRICS_H
17#define QGSTEXTDOCUMENTMETRICS_H
63 double blockWidth(
int blockIndex )
const;
68 double blockHeight(
int blockIndex )
const;
78 double verticalOrientationXOffset(
int blockIndex )
const;
83 double blockMaximumCharacterWidth(
int blockIndex )
const;
88 double blockMaximumDescent(
int blockIndex )
const;
93 QFont fragmentFont(
int blockIndex,
int fragmentIndex )
const;
102 QSizeF mDocumentSizeLabelMode;
103 QSizeF mDocumentSizePointRectMode;
104 QSizeF mDocumentSizeVerticalOrientation;
106 QList < QList< QFont > > mFragmentFonts;
107 QList< double > mBlockWidths;
108 QList< double > mBlockHeights;
109 QList< double > mBaselineOffsetsLabelMode;
110 QList< double > mBaselineOffsetsPointMode;
111 QList< double > mBaselineOffsetsRectMode;
112 QList< double > mVerticalOrientationXOffsets;
113 QList< double > mBlockMaxDescent;
114 QList< double > mBlockMaxCharacterWidth;
115 double mFirstLineAscentOffset = 0;
116 double mLastLineAscentOffset = 0;
TextLayoutMode
Text layout modes.
TextOrientation
Text orientations.
Contains information about the context of a rendering operation.
Contains pre-calculated metrics of a QgsTextDocument.
double ascentOffset() const
Returns the ascent offset of the first block in the document.
Represents a document consisting of one or more QgsTextBlock objects.
Container for all settings relating to text rendering.