82 QColor textColor()
const;
92 void setTextColor(
const QColor &textColor );
104 double fontPointSize()
const;
118 void setFontPointSize(
double size );
129 double fontPercentageSize()
const;
142 void setFontPercentageSize(
double size );
151 QString family()
const;
161 void setFamily(
const QString &family );
170 int fontWeight()
const;
181 void setFontWeight(
int fontWeight );
189 double wordSpacing()
const;
197 void setWordSpacing(
double spacing );
205 BooleanValue italic()
const;
213 void setItalic( BooleanValue enabled );
220 BooleanValue strikeOut()
const;
227 void setStrikeOut( BooleanValue enabled );
234 BooleanValue underline()
const;
241 void setUnderline( BooleanValue enabled );
248 BooleanValue overline()
const;
255 void setOverline( BooleanValue enabled );
266 QString imagePath()
const;
277 void setImagePath(
const QString &path );
290 QSizeF imageSize()
const;
303 void setImageSize(
const QSizeF &size );
359 bool hasBackground()
const;
370 QBrush backgroundBrush()
const;
380 void setBackgroundBrush(
const QBrush &brush );
391 QString backgroundImagePath()
const;
401 void setBackgroundImagePath(
const QString &path );
412 void updateFontForFormat( QFont &font,
const QgsRenderContext &context,
double scaleFactor = 1.0 )
const;
416 int mFontWeight = -1;
418 BooleanValue mItalic = BooleanValue::NotSet;
419 double mFontPointSize = -1;
420 double mFontPercentageSize = -1;
422 double mWordSpacing = std::numeric_limits< double >::quiet_NaN();
424 bool mHasVerticalAlignSet =
false;
430 BooleanValue mStrikethrough = BooleanValue::NotSet;
431 BooleanValue mUnderline = BooleanValue::NotSet;
432 BooleanValue mOverline = BooleanValue::NotSet;
434 QBrush mBackgroundBrush;
435 QString mBackgroundPath;
Contains information about the context of a rendering operation.