Hi, You did not send enough details. I can only guess what font name you used and how you draw string but when I tested your text it shows in pdf without spaces. Btw base14 fonts cannot be used with identity encoding.
On Fri, Dec 6, 2019 at 1:29 PM Igor Mironchik <igor.mironc...@gmail.com> wrote: > Hello. > > I try to create PDF file with PoDoFo library. I want to draw > multi-language text in my PDF file. > > For this I create PdfFont with: > > PdfFont * createFont( const QString & name, bool bold, bool italic, > float size, > PdfStreamedDocument * doc ) > { > auto * font = doc->CreateFont( name.toLocal8Bit().data(), bold, > italic , false, > PdfEncodingFactory::GlobalIdentityEncodingInstance() ); > > if( !font ) > PODOFO_RAISE_ERROR( ePdfError_InvalidHandle ) > > font->SetFontSize( size ); > > return font; > } > > It works. I see English and Russian text in output PDF, but... > > Assume I have text: "The book Книга" > > It writes to PDF but in the output all characters are separated with > space, like: > > "T h e b o o k К н и г а" > > How can I solve this issue? > > Thank you. > > > > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users >
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users