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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Problem with text
  FAQ FAQ  Forum Search   Register Register  Login Login

Problem with text

 Post Reply Post Reply
Author
Message
garrasco View Drop Down
Beginner
Beginner


Joined: 19 Apr 13
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote garrasco Quote  Post ReplyReply Direct Link To This Post Topic: Problem with text
    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

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store