Example #1
0
bool KDChart::TextLayoutItem::realFontWasRecalculated() const
{
    const qreal fntSiz = realFontSize();
    const bool bRecalcDone =
        ( ( ! cachedSizeHint.isValid() ) || ( cachedFontSize != fntSiz   ) );

    if( bRecalcDone && fntSiz > 0.0 ){
        cachedFontSize = fntSiz;
        cachedFont.setPointSizeF( fntSiz );
    }
    return bRecalcDone;
}
Example #2
0
CEDChar * CRtfWord::makeCedSpace(int fontName, int fontAttrs) const {
    CEDChar * space = CRtfChar::makeCedSpace(fontName, DefFontSize, fontAttrs);
    if (RfrmtOptions::useSize() || !RfrmtOptions::useFrames())
        space->setFontHeight(realFontSize() * 2);
    return space;
}