diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx index ef6197f85778..75359251fe56 100644 --- a/editeng/source/items/svxfont.cxx +++ b/editeng/source/items/svxfont.cxx @@ -478,8 +478,13 @@ Size SvxFont::QuickGetTextSize( const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen, KernArray* pDXArray ) const { if ( !IsCaseMap() && !IsFixKerning() ) - return Size( GetTextArray( pOut, rTxt, pDXArray, nIdx, nLen ), + { + SAL_INFO( "editeng.quicktextsize", "SvxFont::QuickGetTextSize before GetTextArray(): Case map: " << IsCaseMap() << " Fix kerning: " << IsFixKerning()); + Size aTxtSize( GetTextArray( pOut, rTxt, pDXArray, nIdx, nLen ), pOut->GetTextHeight() ); + SAL_INFO( "editeng.quicktextsize", "SvxFont::QuickGetTextSize after GetTextArray(): Text length: " << nLen << " Text size: " << aTxtSize.Width() << "x" << aTxtSize.Height()); + return aTxtSize; + } KernArray aDXArray; @@ -492,11 +497,13 @@ Size SvxFont::QuickGetTextSize( const OutputDevice *pOut, const OUString &rTxt, Size aTxtSize; aTxtSize.setHeight( pOut->GetTextHeight() ); + SAL_INFO( "editeng.quicktextsize", "SvxFont::QuickGetTextSize before GetTextArray(): Case map: " << IsCaseMap() << " Fix kerning: " << IsFixKerning()); if ( !IsCaseMap() ) aTxtSize.setWidth( GetTextArray( pOut, rTxt, pDXArray, nIdx, nLen ) ); else aTxtSize.setWidth( GetTextArray( pOut, CalcCaseMap( rTxt ), pDXArray, nIdx, nLen ) ); + SAL_INFO( "editeng.quicktextsize", "SvxFont::QuickGetTextSize after GetTextArray(): Text length: " << nLen << " Text size: " << aTxtSize.Width() << "x" << aTxtSize.Height()); if( IsFixKerning() && ( nLen > 1 ) ) { diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox index f209b6244f5f..275f33e1d073 100644 --- a/include/sal/log-areas.dox +++ b/include/sal/log-areas.dox @@ -197,6 +197,7 @@ certain functionality. @li @c editeng @li @c editeng.chaining @li @c editeng.items +@li @c editeng.quicktextsize @section embeddedobj