You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Simone Rondelli (JIRA)" <ji...@apache.org> on 2016/09/27 15:50:20 UTC

[jira] [Created] (FOP-2650) Cache CustomFont instances

Simone Rondelli created FOP-2650:
------------------------------------

             Summary: Cache CustomFont instances 
                 Key: FOP-2650
                 URL: https://issues.apache.org/jira/browse/FOP-2650
             Project: FOP
          Issue Type: Improvement
          Components: font/unqualified
            Reporter: Simone Rondelli
            Priority: Minor


Custom fonts are loaded through the {{FontLoader}} class on every rendering (for every renderer). For big font files (Eg. Chinese/Japanese/Korean fonts) this can be a really CPU intensive operation.

The aim of this improvement is to implement a cache mechanism that will cache the Font Instances or the informations contained into them.

NB: The class {{Typeface}} has a {{charMapOps}} field that keeps track of the usage of the font during the rendering. This field is used in {{PDFResource.addFonts()}} to determine whether to include the Font into the PDF file. Caching this value will lead to problems.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)