summaryrefslogtreecommitdiff
path: root/vcl/coretext
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-06-30 12:04:27 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2013-06-30 15:07:57 +0200
commit3ed5b347c5916be5c119ecd1fd2239585a512e55 (patch)
tree80b38b7f00e94045bb367ed8cf42b613c7301526 /vcl/coretext
parent717aafb9cae9dc4c58599c3a9b85434335785ec2 (diff)
Fix debug code
Change-Id: If8cd564b03712a8835788386afd83cc97ce04a98
Diffstat (limited to 'vcl/coretext')
-rw-r--r--vcl/coretext/salgdi2.cxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/vcl/coretext/salgdi2.cxx b/vcl/coretext/salgdi2.cxx
index 48f2f26a2738..c99c90a02b18 100644
--- a/vcl/coretext/salgdi2.cxx
+++ b/vcl/coretext/salgdi2.cxx
@@ -485,19 +485,18 @@ sal_uInt16 AquaSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallbac
mpMacTextStyle = mpMacFontData->CreateMacTextStyle( *pReqFont );
mpMacTextStyle->SetTextColor( maTextColor );
-#if OSL_DEBUG_LEVEL > 3
- fprintf( stderr, "SetFont to (\"%s\", \"%s\", fontid=%d) for (\"%s\" \"%s\" weight=%d, slant=%d size=%dx%d orientation=%d)\n",
- OUStringToOString( mpMacFontData->GetFamilyName(), RTL_TEXTENCODING_UTF8 ).getStr(),
- OUStringToOString( mpMacFontData->GetStyleName(), RTL_TEXTENCODING_UTF8 ).getStr(),
- (int)nFontID,
- OUStringToOString( pReqFont->GetFamilyName(), RTL_TEXTENCODING_UTF8 ).getStr(),
- OUStringToOString( pReqFont->GetStyleName(), RTL_TEXTENCODING_UTF8 ).getStr(),
- pReqFont->GetWeight(),
- pReqFont->GetSlant(),
- pReqFont->mnHeight,
- pReqFont->mnWidth,
- pReqFont->mnOrientation);
-#endif
+ SAL_INFO("vcl.coretext",
+ "SetFont"
+ << " to " << mpMacFontData->GetFamilyName()
+ << ", " << mpMacFontData->GetStyleName()
+ << " fontid=" << mpMacFontData->GetFontId()
+ << " for " << pReqFont->GetFamilyName()
+ << ", " << pReqFont->GetStyleName()
+ << " weight=" << pReqFont->GetWeight()
+ << " slant=" << pReqFont->GetSlant()
+ << " size=" << pReqFont->mnHeight << "x" << pReqFont->mnWidth
+ << " orientation=" << pReqFont->mnOrientation
+ );
return 0;
}