Hi podofo:
  I"m to use vs2010 builder prodofo 0.91 ,but can not drawtext chinese ? can do 
help me?
thank your very much!




                pFont = document.CreateFont( "SimHei",new PdfIdentityEncoding( 
0, 0xffff, true ) ); //SimHei  


         //PdfString sJap(reinterpret_cast<const pdf_utf8*>("你好!中国"));  error
        // PdfString sJap(reinterpret_cast<const pdf_utf8*>(L"你好!中国")); true 
but not show
                PdfString sJap("你好!中国"); 
        // PdfString sJap((wchar_t*)("你好!中国"));
         std::string sTemp = sJap.GetStringUtf8();‍



                painter.DrawText( 156.69, pPage->GetPageSize().GetHeight() - 
156.69, sJap );
                painter.DrawText( 56.69, pPage->GetPageSize().GetHeight() - 
56.69, "Hello World!你好" );‍
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to