[Libreoffice-commits] .: vcl/generic
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Dec 23 00:01:33 PST 2011
vcl/generic/fontmanager/fontsubst.cxx | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
New commits:
commit 4628d6de2a4b2e52683d3adb352cd5299cdc4b4c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Dec 23 08:00:31 2011 +0000
adapt DEBUG code
diff --git a/vcl/generic/fontmanager/fontsubst.cxx b/vcl/generic/fontmanager/fontsubst.cxx
index 3e1cafc..2607668 100644
--- a/vcl/generic/fontmanager/fontsubst.cxx
+++ b/vcl/generic/fontmanager/fontsubst.cxx
@@ -163,15 +163,17 @@ bool FcPreMatchSubstititution::FindFontSubstitute( FontSelectPattern &rFontSelDa
const bool bHaveSubstitute = !uselessmatch( rFontSelData, aOut );
#ifdef DEBUG
- const ByteString aOrigName( rFontSelData.maTargetName, RTL_TEXTENCODING_UTF8 );
- const ByteString aSubstName( aOut.maSearchName, RTL_TEXTENCODING_UTF8 );
+ const rtl::OString aOrigName(rtl::OUStringToOString(rFontSelData.maTargetName,
+ RTL_TEXTENCODING_UTF8));
+ const rtl::OString aSubstName(rtl::OUStringToOString(aOut.maSearchName,
+ RTL_TEXTENCODING_UTF8));
printf( "FcPreMatchSubstititution \"%s\" bipw=%d%d%d%d -> ",
- aOrigName.GetBuffer(), rFontSelData.meWeight, rFontSelData.meItalic,
+ aOrigName.getStr(), rFontSelData.meWeight, rFontSelData.meItalic,
rFontSelData.mePitch, rFontSelData.meWidthType );
if( !bHaveSubstitute )
printf( "no substitute available\n" );
else
- printf( "\"%s\" bipw=%d%d%d%d\n", aSubstName.GetBuffer(),
+ printf( "\"%s\" bipw=%d%d%d%d\n", aSubstName.getStr(),
aOut.meWeight, aOut.meItalic, aOut.mePitch, aOut.meWidthType );
#endif
@@ -205,15 +207,17 @@ bool FcGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFont
const bool bHaveSubstitute = !uselessmatch( rFontSelData, aOut );
#ifdef DEBUG
- const ByteString aOrigName( rFontSelData.maTargetName, RTL_TEXTENCODING_UTF8 );
- const ByteString aSubstName( aOut.maSearchName, RTL_TEXTENCODING_UTF8 );
+ const rtl::OString aOrigName(rtl::OUStringToOString(rFontSelData.maTargetName,
+ RTL_TEXTENCODING_UTF8));
+ const rtl::OString aSubstName(rtl::OUStringToOString(aOut.maSearchName,
+ RTL_TEXTENCODING_UTF8));
printf( "FcGFSubstititution \"%s\" bipw=%d%d%d%d ->",
- aOrigName.GetBuffer(), rFontSelData.meWeight, rFontSelData.meItalic,
+ aOrigName.getStr(), rFontSelData.meWeight, rFontSelData.meItalic,
rFontSelData.mePitch, rFontSelData.meWidthType );
if( !bHaveSubstitute )
printf( "no substitute available\n" );
else
- printf( "\"%s\" bipw=%d%d%d%d\n", aSubstName.GetBuffer(),
+ printf( "\"%s\" bipw=%d%d%d%d\n", aSubstName.getStr(),
aOut.meWeight, aOut.meItalic, aOut.mePitch, aOut.meWidthType );
#endif
More information about the Libreoffice-commits
mailing list