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!
Selecting Fonts for DrawText... Functions. |
Post Reply |
Author | |
PhilG
Beginner Joined: 02 Nov 05 Location: United States Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 18 Mar 07 at 3:10PM |
Does anyone know how to select an existing embedded font? I have a PDF that already has about 13 fonts embedded in it and I need to select a particular one before using the DrawWrappedText function.
I've seen samples where the fonts were added and the IDs remembered in the process and refered to later, but what about where the fonts are already embedded in the PDF. How do you use them in writing new text to the PDF? The SelectFont method requires that you already know the FontID of the desired font. I need something like SelectFont("Arial"). Thanks.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Phil!
With FindFonts you can get the number of embedded fonts. In a loop now you can go through all found fonts with FontID -> SelectFont (with FontID) -> FontName. If the fontname is the one you want you can break the loop (SelectFont is already done) beginning with the DrawText-functions. Best regards, Ingo |
|
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