Hi, Currently there is no "official" solution planned. But if you could send a patch with a DrawMultiLineText version that works for both unicode and non unicode text we would of course love to intergrate it.
The same goes for your improved line breaking code! best regards, Dom Am Freitag, 6. November 2009 schrieb Bogdan PANUS: > 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. -- ********************************************************************** Dominik Seichter - domseich...@web.de KRename - http://www.krename.net - Powerful batch renamer for KDE KBarcode - http://www.kbarcode.net - Barcode and label printing PoDoFo - http://podofo.sf.net - PDF generation and parsing library SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE Alan - http://alan.sf.net - A Turing Machine in Java **********************************************************************
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ 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