Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Problem with text |
Post Reply
|
| Author | |
garrasco
Beginner
Joined: 19 Apr 13 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem with textPosted: 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 |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store