INTEGRATION: CWS vcl26 (1.120.24); FILE MERGED

2004/08/19 14:19:53 hdu 1.120.24.1: #117097# improved debugging info for font name related issues
This commit is contained in:
Jens-Heiner Rechtien
2004-09-08 14:58:06 +00:00
parent 149022b21f
commit 8fea9039e5

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: salgdi3.cxx,v $
*
* $Revision: 1.121 $
* $Revision: 1.122 $
*
* last change: $Author: rt $ $Date: 2004-09-08 15:13:25 $
* last change: $Author: hr $ $Date: 2004-09-08 15:58:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -621,8 +621,14 @@ bool X11SalGraphics::setFont( const ImplFontSelectData *pEntry, int nFallbackLev
bFontVertical_ = pEntry->mbVertical;
#ifdef HDU_DEBUG
ByteString aName( pEntry->maName, osl_getThreadTextEncoding() );
fprintf( stderr, "SetFont(lvl=%d,\"%s\", %d*%d, naa=%d,b=%d,i=%d)\n", nFallbackLevel, aName.GetBuffer(), pEntry->mnWidth, pEntry->mnHeight, pEntry->mbNonAntialiased, pEntry->meWeight, pEntry->meItalic );
ByteString aReqName( pEntry->maName, RTL_TEXTENCODING_UTF8 );
ByteString aUseName( "UNKNOWN" );
if( pEntry->mpFontData )
aUseName = ByteString( pEntry->mpFontData->GetFamilyName(), RTL_TEXTENCODING_UTF8 );
fprintf( stderr, "SetFont(lvl=%d,\"%s\", %d*%d, naa=%d,b=%d,i=%d) => \"%s\"\n",
nFallbackLevel, aReqName.GetBuffer(), pEntry->mnWidth, pEntry->mnHeight,
pEntry->mbNonAntialiased, pEntry->meWeight, pEntry->meItalic,
aUseName.GetBuffer() );
#endif
for( int i = nFallbackLevel; i < MAX_FALLBACK; ++i )