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

Reply via email to