16#ifndef QGSTEXTCHARACTERFORMAT_H
17#define QGSTEXTCHARACTERFORMAT_H
84 QColor textColor()
const;
94 void setTextColor(
const QColor &textColor );
103 double fontPointSize()
const;
114 void setFontPointSize(
double size );
123 QString family()
const;
133 void setFamily(
const QString &family );
142 int fontWeight()
const;
153 void setFontWeight(
int fontWeight );
161 BooleanValue italic()
const;
169 void setItalic( BooleanValue enabled );
176 BooleanValue strikeOut()
const;
183 void setStrikeOut( BooleanValue enabled );
190 BooleanValue underline()
const;
197 void setUnderline( BooleanValue enabled );
204 BooleanValue overline()
const;
211 void setOverline( BooleanValue enabled );
270 void updateFontForFormat( QFont &font,
const QgsRenderContext &context,
double scaleFactor = 1.0 )
const;
275 int mFontWeight = -1;
277 BooleanValue mItalic = BooleanValue::NotSet;
278 double mFontPointSize = -1;
281 bool mHasVerticalAlignSet =
false;
284 BooleanValue mStrikethrough = BooleanValue::NotSet;
285 BooleanValue mUnderline = BooleanValue::NotSet;
286 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.