PXC_FontInfo & Text Wrapping

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
acs2000
User
Posts: 9
Joined: Fri Nov 04, 2005 2:04 pm

PXC_FontInfo & Text Wrapping

Post by acs2000 » Fri May 19, 2006 3:15 pm

Basically, to give you a little background, I'm trying to use the PXC_FontInfo structure to know when to wrap a long text stream and also to know what leading to use when the wrapping occurs. I believe the line gap would be PXC_FontInfo.ftmHeight + PXC_FontInfo.ftmELead multiplied by whatever line size is selected.

I figure to get the maximum number of characters I can display, I would take the size area I can write in (in inches), multiply that by 72 to convert to points and divide that result by the font width.

Any advise you could offer?

Also, I see fontBox states "Specifies the bounding box for the font." in the help file and I know it's just a simple RECT structure by looking at the header files, I'm curious how this would be used.

Thanks for your help and great product.

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Sat May 20, 2006 9:01 am

Hi,

There is an example in the SDK which I believe shows all you need - :

CExamp.exe

Run the option 'text and fonts' and see the resulting PDF - page 3, that should help.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply