PDF doesn't include Century Gothic font
Opened this issue · 3 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. CSS contains
@font-face {
font-family: "Century Gothic"; //or centuryForPDF
src: url(http://myintranet/.../CENTURY.TTF);
-fs-pdf-font-embed: embed;
-fs-pdf-font-encoding: Identity-H; //or nothing
}
body {
font-family: "Century Gothic", sans-serif; //or centuryForPDF
}
2. Document doc = builder.parse(my html code)
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(doc, null);
String outputFile = "C:\\100bottles.pdf";
FileOutputStream os = new FileOutputStream(outputFile);
renderer.layout();
renderer.createPDF(os);
os.close();
3. Open the PDF in Adobe Reader
What is the expected output? What do you see instead?
I want Century Gothic in my PDF, I have Times (worst case) or sans-serif
(helvetica displayed using arial... seen in file > properties in Adobe Reader)
What version of the product are you using? On what operating system?
flying saucer R8 & iText 2.0.8
Java 1.5, Win XP
Original issue reported on code.google.com by iubito@gmail.com
on 1 Oct 2014 at 10:12
GoogleCodeExporter commented
Is this issue resolved. I am also facing this issue, not able to resolve it.
Original comment by vijai.28...@googlemail.com
on 20 Nov 2014 at 5:07
GoogleCodeExporter commented
No, I still didn't find any solution.
Original comment by iubito@gmail.com
on 20 Nov 2014 at 6:09
GoogleCodeExporter commented
Thanks for the update. Plesae update me if u get any solution.
If I get any solution, I will update here.
Original comment by vijai.28...@googlemail.com
on 20 Nov 2014 at 6:25