Print Page | Close Window

OTF Font Issue

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3330
Printed Date: 05 May 24 at 1:10AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: OTF Font Issue
Posted By: rweetch
Subject: OTF Font Issue
Date Posted: 16 May 16 at 11:39PM
Fonts are the bane of my life.

I have 3 OTF fonts and these are all loaded into the PDF using 'AddOpenTypeFontFromFile' and capturing the font id. The three fonts are a standard, bold and a light version of the same font. When I look at the font by double clicking the font file, it looks fine.

When I draw after setting the font, I have 2 issues:

1. the font seems to be drawn using double spacing - i.e. d o u b l e   s p a c i n g

2. the bold font isn't bold.

I have stepped through the code and it is setting the correct font id.

Any ideas?

Thanks



Replies:
Posted By: rweetch
Date Posted: 20 May 16 at 3:12PM
This has been resolved. 

The fonts were added to the PDF and the document saved. This was then reloaded in order to draw to the document. Of course, when the file was saved only fonts that are actually used are saved so these ones were no longer in the file.

What confused the issue was that the fonts were installed on the system and the reloaded fonts were then added, but from the system and not from the files.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk