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

Andreas Lehmkühler commented on PDFBOX-2144:
--------------------------------------------

I'm not sure if the FontManager will be still limited to true type fonts in the 
furture. I guess there will some stuff for other types too. So, maybe we should 
keep the FontManager to handle different modules, each for every font type or 
other purpose. Each module could be implemented as plugin using an 
interface/default implementation as proposed.
That would bundle all font related stuff in one class but still as the 
flexibility to handle different font types in different ways without using one 
big interface for all that stuff.

> Provide a pluggable font manager
> --------------------------------
>
>                 Key: PDFBOX-2144
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2144
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>            Reporter: Petr Slaby
>         Attachments: FontManager.patch
>
>
> Our J2EE application has all fonts and resources configured and stored in its 
> database. No files are accessed directly from file system or from system 
> environment. To make PDFBox compatible with this philosophy, we need the 
> FontManager in pdfbox and fontbox to be pluggable, e.g. as shown in the 
> attached patch.
> The proposal defines a FontManager interface and default implementation which 
> is the original one. FontManager then needs to be configured on and 
> propagated from PDFStreamEngine and PageDrawer. It should also be 
> configurable on PDFRenderer, which is not shown in the patch. There I would 
> suggest to introduce a configuration object which would take care about all 
> the current and future options of PDFRenderer.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to