Index: svtools/workben/svdem.cxx =================================================================== RCS file: /cvs/util/svtools/workben/svdem.cxx,v retrieving revision 1.3 diff -c -r1.3 svdem.cxx *** svtools/workben/svdem.cxx 15 Jan 2002 17:25:59 -0000 1.3 --- svtools/workben/svdem.cxx 11 Nov 2003 08:46:45 -0000 *************** *** 344,355 **** } else { aText = rFont.GetName(); if ( !aText.Len() ) aText.AssignAscii( "Sample" ); x = aWindowSize.Width()/2 - GetTextWidth( aText )/2; ! y = aWindowSize.Height()/2 - GetTextHeight()/2; } DrawText( Point( x, y ), aText ); --- 344,362 ---- } else { + // Japanese text + sal_Unicode const aTextJapanse[] = { 0x65e5, 0x672c, 0x8a9e, 0x3067, 0x3001, 0x3053, 0x3093, 0x306b, 0x3061, 0x306f, 0x3002, 0, 0 }; + aText = String( aTextJapanse ); + x = aWindowSize.Width()/2 - GetTextWidth( aText )/2; + y = aWindowSize.Height()*2/3 - GetTextHeight()/2; + DrawText( Point( x, y ), aText ); + aText = rFont.GetName(); if ( !aText.Len() ) aText.AssignAscii( "Sample" ); x = aWindowSize.Width()/2 - GetTextWidth( aText )/2; ! y = aWindowSize.Height()*1/3 - GetTextHeight()/2; } DrawText( Point( x, y ), aText );