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 Q_UNUSED( scaleFactor );
78 #if 0 // settings which affect font metrics are disabled for now
81 if ( mFontWeight != -1 )
82 font.setWeight( mFontWeight );
83 if ( !mFontFamily.isEmpty() )
84 font.setFamily( mFontFamily );
85 if ( mFontPointSize != -1 )
86 font.setPointSizeF( mFontPointSize );
97 #if 0 // settings which affect font metrics are disabled for now
108 int QgsTextCharacterFormat::fontWeight()
const
113 void QgsTextCharacterFormat::setFontWeight(
int fontWeight )
115 mFontWeight = fontWeight;