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

Henning von Bargen commented on PDFBOX-4565:
--------------------------------------------

Similar problem with interface FontMapper and FontMapperImpl:

I want to supply a custom FontProvider. But the setProvider method is not 
visible using the interface FontMapper, and the FontMapperImpl class is not 
public...

This makes supplying a custom FontProvider impossible.

> Make constructors PDPanoseClassification and CIDSystemInfo public
> -----------------------------------------------------------------
>
>                 Key: PDFBOX-4565
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4565
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox, PDModel
>    Affects Versions: 2.0.15
>            Reporter: Henning von Bargen
>            Priority: Trivial
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> The constructors for the classes PDPanoseClassification and CIDSystemInfo are 
> package-visible only (not public).
> This makes coding a different FontProvider similar to FileSystemFontProvider 
> an unnecessarily hard task.
> Background:
> I'm working on replacing iText with PDFBox for Eclipse BIRT. One task is to 
> support BIRTs fontconfig.xml for locating TTF fonts etc.
> Obviously I need something simlar to the FileSystemFontProvider, but instead 
> of using the file system directly, use the information in BIRTs 
> fontconfig.xml file.
> So I started with copying FileSystemFontProvider to a new class 
> ConfigFontProvider in a different package.
> Now this fails because the classes PDPanoseClassification and CIDSystemInfo 
> have non-public (package-only) constructors. So I'd have to copy a whole 
> bunch of source files in order to make this work.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to