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 - Determine the current font
  FAQ FAQ  Forum Search   Register Register  Login Login

Determine the current font

 Post Reply Post Reply
Author
Message
hrdware View Drop Down
Team Player
Team Player
Avatar

Joined: 16 May 13
Location: Oklahoma, USA
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote hrdware Quote  Post ReplyReply Direct Link To This Post Topic: Determine the current font
    Posted: 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.
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
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