18 #include <QTextCharFormat>
21 : mTextColor( format.hasProperty( QTextFormat::ForegroundBrush ) ? format.foreground().color() : QColor() )
23 , mFontWeight( format.hasProperty( QTextFormat::FontWeight ) ? format.fontWeight() : -1 )
25 , mFontPointSize( format.hasProperty( QTextFormat::FontPointSize ) ? format.fontPointSize() : - 1 )
26 , mFontFamily( format.hasProperty( QTextFormat::FontFamily ) ? format.fontFamily() : QString() )
47 return mStrikethrough;
52 mStrikethrough = strikethrough;
77 #if 0 // settings which affect font metrics are disabled for now
80 if ( mFontWeight != -1 )
81 font.setWeight( mFontWeight );
82 if ( !mFontFamily.isEmpty() )
83 font.setFamily( mFontFamily );
84 if ( mFontPointSize != -1 )
85 font.setPointSizeF( mFontPointSize );
96 #if 0 // settings which affect font metrics are disabled for now
107 int QgsTextCharacterFormat::fontWeight()
const
112 void QgsTextCharacterFormat::setFontWeight(
int fontWeight )
114 mFontWeight = fontWeight;