16 #ifndef QGSTEXTCHARACTERFORMAT_H
17 #define QGSTEXTCHARACTERFORMAT_H
20 #include "qgis_core.h"
25 class QTextCharFormat;
67 QColor textColor()
const;
77 void setTextColor(
const QColor &textColor );
87 int fontWeight()
const;
97 void setFontWeight(
int fontWeight );
104 BooleanValue italic()
const;
111 void setItalic( BooleanValue enabled );
119 BooleanValue strikeOut()
const;
126 void setStrikeOut( BooleanValue enabled );
133 BooleanValue underline()
const;
140 void setUnderline( BooleanValue enabled );
147 BooleanValue overline()
const;
154 void setOverline( BooleanValue enabled );
160 void updateFontForFormat( QFont &font )
const;
166 #if 0 // settings which affect font metrics are disabled for now
167 int mFontWeight = -1;
168 BooleanValue mItalic = BooleanValue::NotSet;
169 double mFontPointSize = -1;
173 BooleanValue mStrikethrough = BooleanValue::NotSet;
174 BooleanValue mUnderline = BooleanValue::NotSet;
175 BooleanValue mOverline = BooleanValue::NotSet;
178 #endif // QGSTEXTCHARACTERFORMAT_H