You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Benjamin Eder (Jira)" <ji...@apache.org> on 2020/07/30 12:55:00 UTC

[jira] [Comment Edited] (PDFBOX-3758) Add support for OTF/PostScript subsetting

    [ https://issues.apache.org/jira/browse/PDFBOX-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167894#comment-17167894 ] 

Benjamin Eder edited comment on PDFBOX-3758 at 7/30/20, 12:54 PM:
------------------------------------------------------------------

I am very new to the source code but to me it seems like we'd have to merely try to migrate fop-core/src/main/java/org/apache/fop/fonts/truetype/OTFSubSetFile.java ([https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/OTFSubSetFile.java]) to a new OpenTypeEmbedder (implementing the Subsetter interface and using a new OTFSubsetter in fontbox) alike the current TrueTypeEmbedder implementation.

If that sounds correct to you I could give it a try.


was (Author: bennyboer):
I am very new to the source code but to me it seems like we'd have to merely try to migrate fop-core/src/main/java/org/apache/fop/fonts/truetype/OTFSubSetFile.java (https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/OTFSubSetFile.java) to a new OpenTypeEmbedder (implementing the Subsetter interface) alike the current TrueTypeEmbedder implementation.

If that sounds correct to you I could give it a try.

> Add support for OTF/PostScript subsetting
> -----------------------------------------
>
>                 Key: PDFBOX-3758
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3758
>             Project: PDFBox
>          Issue Type: Wish
>          Components: FontBox
>    Affects Versions: 2.0.5
>            Reporter: Tobias Fischer
>            Priority: Major
>
> Fontbox has a very good TTF subsetter and I'd love to have this also for PostScript based OTF fonts.
> I know that this is currently missing and building OTF/PS support is hard, but the recent Apache FOP release 2.2 seems to have added this to their codebase with FOP-2252. I think this should better be part of Fontbox/PDFBox.
> Unfortunately I wasn't even able to get the FOP 2.2 OTF Subsetter to work with fonts on the local file system rather than embedded ones from PDFs. So there's probably still work to do...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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