Re: How to implement OTF-fonts into a PDF with Apache PDFBox 2.x?

2016-08-16 Thread John Hewson
> On 16 Aug 2016, at 13:48, Tilman Hausherr wrote: > > Am 16.08.2016 um 21:25 schrieb hamena314: >> |PDType0Font font = PDType0Font.load(doc, new File("MyFont.otf")); | > > > I wonder if this would work: > > OTFParser otfp = new OTFParser(true); > TrueTypeFont ttf = otfp.parse(new File("MyFo

Re: How to implement OTF-fonts into a PDF with Apache PDFBox 2.x?

2016-08-16 Thread Tilman Hausherr
Am 16.08.2016 um 21:25 schrieb hamena314: |PDType0Font font = PDType0Font.load(doc, new File("MyFont.otf")); | I wonder if this would work: OTFParser otfp = new OTFParser(true); TrueTypeFont ttf = otfp.parse(new File("MyFont.otf")); PDType0Font font = PDType0Font.load(doc, ttf, true); ---

How to implement OTF-fonts into a PDF with Apache PDFBox 2.x?

2016-08-16 Thread hamena314
Hey there! I am trying to use an OTF-font for creating a PDF with PDFBox 2.0.2 in Java 8. I've tried different methods and read what google could find, but it was not that much to this topic: http://stackoverflow.com/questions/26651261/using-pdfbox-to-create-pdf-referencing-otf-fonts |Stri