Hi again.

 

In my application I need to write Unicode text in multiple lines. I see that
DrawText handles Unicode text quite ok, while DrawMultiLineText does not.

 

I have made some changes like:
                

struct TLineElement 

{

.

      //const char* pszStart; 

      const pdf_utf16be* pszStart;

 

      pdf_long        lLen;

};

.

//tLine.pszStart       = sString.GetString();

tLine.pszStart       = sString.GetUnicode();

.

//if( isspace( static_cast<unsigned int>(static_cast<unsigned
char>(*pszEnd)) ) ||

      //    ispunct( static_cast<unsigned int>(static_cast<unsigned
char>(*pszEnd)) ))

      //          pszWord = pszEnd;

if( isspace( static_cast<unsigned int>(((*pszEnd) & 0xff00) >> 8) ) || 

          ispunct( static_cast<unsigned int>(((*pszEnd) & 0xff00) >> 8) ))

                  pszWord = pszEnd;

 

and now it handles only Unicode strings (works for me). I want to know if
there will be an official solution for this problem? I also rewrote the text
wrapping code. If anybody wants I can post it here.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to