Hello,
I am fighting with 64 bit PoDoFo on Windows: I have a 32-bit Windows
application that uses PoDoFo library to generate PDF files and this works
quite well. Now I wanted to build a 64 bit version, so build a 64 bit
version of PoDoFo and am calling it from my app. PDF files are generated,
however text are not correctly rendered, the spaces between characters are
wrong. The letter are displayed monospace with large horizontal offset.
I pass to PoDoFo text in little endian UTF-16 format, the calls look like
PdfString text(reinterpret_cast <const wchar_t*> (inText), inTextLength);
mPainter->DrawText (inX + mOffset.h, inBaseLine + mOffset.v, text);
and
PdfFontMetrics *fm = font->GetFontMetrics2();
PdfString text(reinterpret_cast <const wchar_t*> (inText), inTextLength);
double width = fm->StringWidth(text);
In both cases I can check in debugger that inText is correct LE UTF-16
text. While StringWidth returns values that seems correct, DrawText prints
text with wrong spacing.
I noticed that when I passed text in wrong format to StringWidth, it
returned font size x text length, which seems to be problem of DrawText.
However, if I look at text structure, in both cases it seems OK.
Does somebody that build 64-bit Windows PoDofo run into this problem? Are
there settings and constants that need to be set differently in 64 bit
PoDoFo then 32 bit?
TIA,
Regards,
--
Peter Bozek
------------------------------------------------------------------------------
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