Print Page | Close Window

Problem with text

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2603
Printed Date: 03 Feb 26 at 5:40PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem with text
Posted By: garrasco
Subject: Problem with text
Date Posted: 19 Apr 13 at 3:56PM
I am testing the demo version of the library for verifying if it fits our needs.

Our program is written in C and uses Win32 for printing.

I used the GetCanvasDC for obtaining a DeviceContext and i passed it to our current printing routine (that works fine with real printers).
Everything works quite well but text that should be narrowed is instead plotted with the full default width. Also rotated text are rotated clockwise instead of counterclockwise.

In our routine the narowed text is made by simply creating a logical font with CreateFontIndirect(...) specifying a .lfWidth different from 0 in LOGFONT structure.

The rotated text is made by simply specifying the angle (in tenths of degrees) in both .lfEscapement and .lfOrientation in LOGFONT structure passed to CreateFontIndirect(...)

Any idea?

Thanks

Luca




Replies:
Posted By: AndrewC
Date Posted: 22 Apr 13 at 10:47AM
Luca,

Can you please create an EMF file from your program output which will help me see exactly what is happening.  GDI+ is quite complex to emulate and convert to PDF.  Rotation should be working.  Is it possible you are using negative angles ?  I will see when you send the EMF file.

HDC emfdc = CreateEnhMetaFile(GetDC(NULL), _T("C:\\test\\testEmf.emf"), NULL, "testing");

// Now pass this DOC to your print routine.

  CloseEnhMetaFile(emfdc);

Andrew



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk