|
| QgsTextCharacterFormat ()=default |
| Constructor for QgsTextCharacterFormat. More...
|
|
| QgsTextCharacterFormat (const QTextCharFormat &format) |
| Constructor for QgsTextCharacterFormat, based on the specified QTextCharFormat format. More...
|
|
QString | family () const |
| Returns the font family name, or an empty string if the family is not set and should be inherited. More...
|
|
double | fontPointSize () const |
| Returns the font point size, or -1 if the font size is not set and should be inherited. More...
|
|
int | fontWeight () const |
| Returns the font weight, or -1 if the font weight is not set and should be inherited. More...
|
|
bool | hasVerticalAlignmentSet () const |
| Returns true if the format has an explicit vertical alignment set. More...
|
|
BooleanValue | italic () const |
| Returns whether the format has italic enabled. More...
|
|
BooleanValue | overline () const |
| Returns whether the format has overline enabled. More...
|
|
void | setFamily (const QString &family) |
| Sets the font family name. More...
|
|
void | setFontPointSize (double size) |
| Sets the font point size. More...
|
|
void | setFontWeight (int fontWeight) |
| Sets the font weight. More...
|
|
void | setHasVerticalAlignmentSet (bool set) |
| Sets whether the format has an explicit vertical alignment set. More...
|
|
void | setItalic (BooleanValue enabled) |
| Sets whether the format has italic enabled. More...
|
|
void | setOverline (BooleanValue enabled) |
| Sets whether the format has overline enabled. More...
|
|
void | setStrikeOut (BooleanValue enabled) |
| Sets whether the format has strikethrough enabled. More...
|
|
void | setTextColor (const QColor &textColor) |
| Sets the character's text color. More...
|
|
void | setUnderline (BooleanValue enabled) |
| Sets whether the format has underline enabled. More...
|
|
void | setVerticalAlignment (Qgis::TextCharacterVerticalAlignment alignment) |
| Sets the format vertical alignment. More...
|
|
BooleanValue | strikeOut () const |
| Returns whether the format has strikethrough enabled. More...
|
|
QColor | textColor () const |
| Returns the character's text color, or an invalid color if no color override is set and the default format color should be used. More...
|
|
BooleanValue | underline () const |
| Returns whether the format has underline enabled. More...
|
|
void | updateFontForFormat (QFont &font, const QgsRenderContext &context, double scaleFactor=1.0) const |
| Updates the specified font in place, applying character formatting options which are applicable on a font level when rendered in the given context. More...
|
|
Qgis::TextCharacterVerticalAlignment | verticalAlignment () const |
| Returns the format vertical alignment. More...
|
|