92 Qgis::TextRendererFlags flags = Qgis::TextRendererFlags() );
109 bool drawAsOutlines =
true );
129 Q_DECL_DEPRECATED
static void drawPart(
const QRectF &rect,
double rotation,
Qgis::TextHorizontalAlignment alignment,
const QStringList &textLines,
151 Q_DECL_DEPRECATED
static void drawPart( QPointF origin,
double rotation,
Qgis::TextHorizontalAlignment alignment,
const QStringList &textLines,
177 QFontMetricsF *fontMetrics =
nullptr );
190 QFontMetricsF *fontMetrics =
nullptr, Qgis::TextRendererFlags flags = Qgis::TextRendererFlags(),
double maxLineWidth = 0 );
244 bool useOrigin =
false;
246 double rotation = 0.0;
248 double rotationOffset = 0.0;
262 double pictureBuffer = 0.0;
264 double dpiRatio = 1.0;
269 double extraWordSpacing = 0;
271 double extraLetterSpacing = 0;
321 const Component &component,
333 const Component &component,
337 const Component &component,
342 const Component &component,
348 const Component &component,
357 static void calculateExtraSpacingForLineJustification(
double spaceToDistribute,
const QgsTextBlock &block,
double &extraWordSpace,
double &extraLetterSpace );
358 static void applyExtraSpacingForLineJustification( QFont &font,
double extraWordSpace,
double extraLetterSpace );
364 const Component &component,
376 const Component &component,
387 friend class QgsLabelPreview;
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.
Represents a document consisting of one or more QgsTextBlock objects.
Handles rendering text using rich formatting options, including drop shadows, buffers and background ...