16#ifndef QGSTEXTCHARACTERFORMAT_H
17#define QGSTEXTCHARACTERFORMAT_H
69 QColor textColor()
const;
79 void setTextColor(
const QColor &textColor );
88 double fontPointSize()
const;
99 void setFontPointSize(
double size );
108 QString family()
const;
118 void setFamily(
const QString &family );
127 int fontWeight()
const;
138 void setFontWeight(
int fontWeight );
146 BooleanValue italic()
const;
154 void setItalic( BooleanValue enabled );
161 BooleanValue strikeOut()
const;
168 void setStrikeOut( BooleanValue enabled );
175 BooleanValue underline()
const;
182 void setUnderline( BooleanValue enabled );
189 BooleanValue overline()
const;
196 void setOverline( BooleanValue enabled );
255 void updateFontForFormat( QFont &font,
const QgsRenderContext &context,
double scaleFactor = 1.0 )
const;
260 int mFontWeight = -1;
262 BooleanValue mItalic = BooleanValue::NotSet;
263 double mFontPointSize = -1;
266 bool mHasVerticalAlignSet =
false;
269 BooleanValue mStrikethrough = BooleanValue::NotSet;
270 BooleanValue mUnderline = BooleanValue::NotSet;
271 BooleanValue mOverline = BooleanValue::NotSet;
TextCharacterVerticalAlignment
Text vertical alignment for characters.
@ Normal
Adjacent characters are positioned in the standard way for text in the writing system in use.
Contains information about the context of a rendering operation.
Stores information relating to individual character formatting.
QgsTextCharacterFormat()=default
Constructor for QgsTextCharacterFormat.
void setVerticalAlignment(Qgis::TextCharacterVerticalAlignment alignment)
Sets the format vertical alignment.
BooleanValue
Status values for boolean format properties.
Qgis::TextCharacterVerticalAlignment verticalAlignment() const
Returns the format vertical alignment.
bool hasVerticalAlignmentSet() const
Returns true if the format has an explicit vertical alignment set.
void setHasVerticalAlignmentSet(bool set)
Sets whether the format has an explicit vertical alignment set.