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 16:10:21 UTC
[jira] [Updated] (FOP-2650) Cache CustomFont instances
[ https://issues.apache.org/jira/browse/FOP-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Rondelli updated FOP-2650:
---------------------------------
Description:
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 if multiple renders are run on the same VM instance.
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.
was:
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.
> 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 if multiple renders are run on the same VM instance.
> 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)