| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   16 #ifndef QGSTEXTFORMAT_H 
   17 #define QGSTEXTFORMAT_H 
   20 #include "qgis_core.h" 
   28 #include <QSharedDataPointer> 
   31 class QgsTextSettingsPrivate;
 
  208     void setFont( 
const QFont &font );
 
  215     QString namedStyle() 
const;
 
  223     void setNamedStyle( 
const QString &style );
 
  236     bool forcedBold() 
const;
 
  249     void setForcedBold( 
bool forced );
 
  262     bool forcedItalic() 
const;
 
  275     void setForcedItalic( 
bool forced );
 
  286     QStringList families() 
const;
 
  301     void setFamilies( 
const QStringList &families );
 
  316     void setSize( 
double size );
 
  355     QColor color() 
const;
 
  362     void setColor( 
const QColor &color );
 
  369     double opacity() 
const;
 
  377     void setOpacity( 
double opacity );
 
  391     int stretchFactor() 
const;
 
  405     void setStretchFactor( 
int factor );
 
  411     QPainter::CompositionMode blendMode() 
const;
 
  418     void setBlendMode( QPainter::CompositionMode mode );
 
  426     double lineHeight() 
const;
 
  435     void setLineHeight( 
double height );
 
  442     TextOrientation orientation() 
const;
 
  449     void setOrientation( TextOrientation orientation );
 
  481     bool allowHtmlFormatting() 
const;
 
  497     void setAllowHtmlFormatting( 
bool allow );
 
  504     QColor previewBackgroundColor() 
const;
 
  511     void setPreviewBackgroundColor( 
const QColor &color );
 
  554     QFont toQFont() const;
 
  567     bool containsAdvancedEffects() const;
 
  574     bool fontFound()
 const { 
return mTextFontFound; }
 
  627     static QPixmap textFormatPreviewPixmap( const 
QgsTextFormat &format, QSize size, const QString &previewText = QString(), 
int padding = 0 );
 
  636     QString mTextFontFamily;
 
  637     bool mTextFontFound = true;
 
  639     QSharedDataPointer<QgsTextSettingsPrivate> d;
 
  645 #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.
 
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
@ VerticalOrientation
Horizontally oriented text.
 
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. A selective masking only makes ...
 
Capitalization
String capitalization options.
 
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.
 
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
 
@ HorizontalOrientation
Vertically oriented text.
 
TextOrientation
Text orientation.