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 - Font Issue
  FAQ FAQ  Forum Search   Register Register  Login Login

Font Issue

 Post Reply Post Reply
rweetch View Drop Down
Senior Member
Senior Member

Joined: 22 Feb 11
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Topic: Font Issue
    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? 
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