Hey,
the version is 0.9.4 sorry, i just assumed that if not said specifically
everybody would default to the latest release :-)
Thank you for your answer. I will take a look at PdfEncodingFactory. In
another program that uses 0.9.3 PoDoFo it works fine with the posted
code. no monospace, no problems.
greetings
Dennis
Am 01.12.2016 um 13:59 schrieb zyx:
On Thu, 2016-12-01 at 11:48 +0100, dennis wrote:
font = g_outputDoc->CreateFont(fontName, isBold, isItalic, false,
new PdfIdentityEncoding(0, 0xffff, true), true);
Hi,
I wouldn't be surprised if it's due to the PdfIdentityEncoding() use
(which you actually leak; consider using PdfEncodingFactory members).
double imposedPdf::measureText(const wchar_t* text) {
PoDoFo::PdfString pdfText(text);
Another thing, at least from my past experience, when using wchar_t and
PdfString, I'd rather use PdfString::setFromWchar_t() method, to make
sure the value is wchar_t, not any other PdfString() constructor. It
depends on the actual system for which you compile, though.
By the way, mentioning your PoDoFo version would be also a good idea.
Bye,
zyx
--
dots <http://www.dots.de/en/>
Dennis Voss
dots Software GmbH
Schlesische Str. 27, 10997 Berlin, Germany
Tel: +49 (0)30 695 799-47
Fax: +49 (0)30 695 799-55
dennis.v...@dots.de <mailto:dennis.v...@dots.de>
http://www.dots.de <http://www.dots.de/>
Amtsgericht Berlin Charlottenburg HRB 65201
Geschäftsführer: Olaf Lorenz
Follow us on: Twitter <http://www.dots.de/?id=twitter> Youtube
<http://www.dots.de/?id=youtube> Xing <http://www.dots.de/?id=xing>
------------------------------------------------------------------------------
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