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!
Font Issue |
Post Reply |
Author | |
rweetch
Senior Member Joined: 22 Feb 11 Status: Offline Points: 173 |
Post Options
Thanks(0)
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?
|
|
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