On 25.3.2017 23:59, fryderykst wrote:
        PdfString pLtext(reinterpret_cast<const pdf_utf8*>("�ódź stół"));
It gives me
        „Unhandled exception at 0x75ECA882 in fvu.exe: Microsoft C++ 
exception: PoDoFo::PdfError at memory location 0x006FF6E0.�
But when I do this:
        PdfString pLtext(L"�ódź stół");
It goes smoothly, and I got polish chars in pdf file.

        Hi,
right, it makes perfect sense, because you didn't specify what encoding your source file uses. If you claim in the code that it's UTF-8, but in reality it's like ISO-8859-X (I do not know which one contains all Polish letters), then you pass the code garbage, like my mail application made it above. Using Unicode (wchar_t) is unambiguous and no problem in conversion to appropriate encoding.

In the end, I’d like to ask, where can I find list of fonts which supports 
polish chars.

I'm afraid there is no such list. Base14 fonts have some minimal requirements, but speaking in general, for TrueType fonts, there is nothing like a list of fonts which always support certain character set. Just pick and try, embed fonts which work and so on. Different viewers can show base14 fonts differently as well, I know that Adobe Reader 11 doesn't have some Courier accent letters (I told it to Adobe long time ago), but Evince shows the same file properly.
        Bye,
        zyx

--
http://www.litePDF.cz                                 i...@litepdf.cz

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to