16#ifndef QGSTEXTRENDERER_H
17#define QGSTEXTRENDERER_H
95 Qgis::TextRendererFlags flags = Qgis::TextRendererFlags(),
120 static void drawDocument(
const QRectF &rect,
129 Qgis::TextRendererFlags flags = Qgis::TextRendererFlags() );
146 bool drawAsOutlines =
true );
166 Q_DECL_DEPRECATED
static void drawPart(
const QRectF &rect,
double rotation,
Qgis::TextHorizontalAlignment alignment,
const QStringList &textLines,
188 Q_DECL_DEPRECATED
static void drawPart( QPointF origin,
double rotation,
Qgis::TextHorizontalAlignment alignment,
const QStringList &textLines,
214 QFontMetricsF *fontMetrics =
nullptr );
227 QFontMetricsF *fontMetrics =
nullptr, Qgis::TextRendererFlags flags = Qgis::TextRendererFlags(),
double maxLineWidth = 0 );
279 int firstFragmentIndex = 0;
284 bool useOrigin =
false;
286 double rotation = 0.0;
288 double rotationOffset = 0.0;
302 double pictureBuffer = 0.0;
304 double dpiRatio = 1.0;
309 double extraWordSpacing = 0;
311 double extraLetterSpacing = 0;
361 const Component &component,
373 const Component &component,
377 const Component &component,
383 const Component &component,
389 const Component &component,
398 static void calculateExtraSpacingForLineJustification(
double spaceToDistribute,
const QgsTextBlock &block,
double &extraWordSpace,
double &extraLetterSpace );
399 static void applyExtraSpacingForLineJustification( QFont &font,
double extraWordSpace,
double extraLetterSpace );
405 const Component &component,
417 const Component &component,
428 friend class QgsLabelPreview;
TextLayoutMode
Text layout modes.
@ Point
Text at point of origin layout mode.
TextOrientation
Text orientations.
TextVerticalAlignment
Text vertical alignment.
TextHorizontalAlignment
Text horizontal alignment.
TextComponent
Text components.
Struct for storing maximum and minimum scales for measurements in map units.
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.
Container for all settings relating to text rendering.
Handles rendering text using rich formatting options, including drop shadows, buffers and background ...
RenderUnit
Rendering size units.
The QgsVectorLayerLabelProvider class implements a label provider for vector layers.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
#define FONT_WORKAROUND_SCALE