[ https://issues.apache.org/jira/browse/PDFBOX-1971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13925522#comment-13925522 ]
John Hewson commented on PDFBOX-1971: ------------------------------------- Each font you use will result in the .pfb (and some of the .afm information) being embedded. It's possible to subset a Type 1 font but currently PDFBox can't do that. Given that LiberationSans is a clone of Arial, and Arial is a clone of Helvetica, you could just use {{PDType1Font.HELVETICA}} instead and avoid the need to embed any fonts. > Bad /bbox dialog after creating PDF with custom font > ---------------------------------------------------- > > Key: PDFBOX-1971 > URL: https://issues.apache.org/jira/browse/PDFBOX-1971 > Project: PDFBox > Issue Type: Bug > Components: Writing > Affects Versions: 1.8.4 > Environment: Linux and Windows > Reporter: janak > Attachments: Hello World.pdf, LiberationSans-Bold.afm, > LiberationSans-Bold.pfb, LiberationSans-Bold.ttf, LiberationSans-Regular.afm, > LiberationSans-Regular.pfb, LiberationSans-Regular.ttf, Main.java, pdfbox.zip > > > I have tried with adding my customer font in PDFBox resource but it not > creating proper PDF. PDF was created successfully but its showing Font > contain bad /bbox dialogue while opening the pdf. What will be solution for > this. > Testing with font : LiberationSans with Regular and Bold > Also tried with loadTTF and PDType1AfmPfbFont class but pdf was 150 times > larger then attached one. -- This message was sent by Atlassian JIRA (v6.2#6252)