pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hewson <j...@jahewson.com>
Subject Re: How to implement OTF-fonts into a PDF with Apache PDFBox 2.x?
Date Tue, 16 Aug 2016 22:55:00 GMT

> On 16 Aug 2016, at 13:48, Tilman Hausherr <THausherr@t-online.de> 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("MyFont.otf"));
> PDType0Font font = PDType0Font.load(doc, ttf, true);

No, it won’t. Unfortunately we don’t support embedding OTFs. One reason for this is that
we don’t have an OTF subsetter.

— John

> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message