QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSTEXTFORMAT_H
17 #define QGSTEXTFORMAT_H
20 #include "qgis_core.h"
28 #include <QSharedDataPointer>
30 class QgsTextSettingsPrivate;
195 QFont scaledFont(
const QgsRenderContext &context,
double scaleFactor = 1.0 )
const;
206 void setFont(
const QFont &font );
213 QString namedStyle()
const;
221 void setNamedStyle(
const QString &style );
236 void setSize(
double size );
275 QColor color()
const;
282 void setColor(
const QColor &color );
289 double opacity()
const;
297 void setOpacity(
double opacity );
303 QPainter::CompositionMode blendMode()
const;
310 void setBlendMode( QPainter::CompositionMode mode );
318 double lineHeight()
const;
327 void setLineHeight(
double height );
334 TextOrientation orientation()
const;
341 void setOrientation( TextOrientation orientation );
373 bool allowHtmlFormatting()
const;
389 void setAllowHtmlFormatting(
bool allow );
396 QColor previewBackgroundColor()
const;
403 void setPreviewBackgroundColor(
const QColor &color );
446 QFont toQFont() const;
459 bool containsAdvancedEffects() const;
466 bool fontFound()
const {
return mTextFontFound; }
519 static QPixmap textFormatPreviewPixmap( const
QgsTextFormat &format, QSize size, const QString &previewText = QString(),
int padding = 0 );
528 QString mTextFontFamily;
529 bool mTextFontFound = true;
531 QSharedDataPointer<QgsTextSettingsPrivate> d;
537 #endif // QGSTEXTFORMAT_H
RenderUnit
Rendering size units.
The class is used as a container of context for various read/write operations on other objects.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QString resolvedFontFamily() const
Returns the family for the resolved font, ie if the specified font was not found on the system this w...
QgsTextShadowSettings shadow() const
Returns a reference to the text drop shadow settings.
Container for settings relating to a text background object.
Contains information about the context of a rendering operation.
QgsTextBackgroundSettings background() const
Returns a reference to the text background settings.
Capitalization
Capitalization options.
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
@ VerticalOrientation
Horizontally oriented text.
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
QgsTextMaskSettings mask() const
Returns a reference to the masking settings.
Container for all settings relating to text rendering.
Container for settings relating to a selective masking around a text.
Struct for storing maximum and minimum scales for measurements in map units.
Container for settings relating to a text buffer.
QgsTextBufferSettings buffer() const
Returns a reference to the text buffer settings.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
Container for settings relating to a text shadow.
@ RotationBasedOrientation
Horizontally or vertically oriented text based on rotation (only available for map labeling)
Represents a vector layer which manages a vector based data sets.
@ HorizontalOrientation
Vertically oriented text.
TextOrientation
Text orientation.