Print Page | Close Window

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=3586
Printed Date: 25 Apr 24 at 7:45AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Font Issue
Posted By: rweetch
Subject: Font Issue
Date Posted: 20 Jul 18 at 6:11PM
Strange problem I am loading an OTF (open type font from file) and it is rendering strange characters

1. I have a PDF with a couple of embedded, subsetted fonts, one bold and one standard. These PDFs are provided.

2. I create a TDebenuPDF (FPDF) and load the file SourceDoc := FPDF.LoadFromFile(AFileName);

3. I create a new Document TargetDoc := FPDF.NewDocument;

4. I make the new doc seleted - FPDF.SelectDocument(TargetDoc);

5. I Call FindFonts(FPDF); (do some other stuff to hold them in a list)

6. I add two fonts from file. These are the same fonts that are in the original, but not subsetted.

7. I copy pages using CopyRangeEx, a page at a time, from source to target.

8. Set the font based on the fontid of the font loaded from file

9. write some text, but the characters aren't correct. 

Any ideas? 



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