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!
![]() |
Determine the current font |
Post Reply
|
| Author | |
hrdware
Team Player
Joined: 16 May 13 Location: Oklahoma, USA Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Topic: Determine the current fontPosted: 24 Oct 13 at 9:44PM |
|
I need to be able to switch between normal and bold fonts for different font sets, ie courier and helvetica. Is there a way for the PDF library to return what the current font is? I don't want to go from courier to helvetica bold by accident.
|
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 Oct 13 at 2:51AM |
|
Hi hrdware,
You can use the SelectedFont function to determine the ID of the selected font. So for example, if you add a font using the AddStandardFont function it will return a font ID if the font is successfully added. If you add multiple fonts keep track of the different ID's and then use the SelectFont function to which between the fonts. If you are not sure which font is selected then use the SelectedFont function to get the ID of the selected font. I hope this helps. Cheers, - Rowan.
|
|
![]() |
|
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