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

Simone Rondelli commented on FOP-2644:
--------------------------------------

A question unrelated to this issue: Why every renderer reload the font from 
scratch? If I have 20 fonts and 8 renderers it means that we have 160 font 
reading (with huge memory/CPU impact) while there could be just 20 font 
reading. Wouldn't it be better to just share the font informations across the 
renderers?

> Generated font metrics do not contains GSUB, GPOS, GDEF tables
> --------------------------------------------------------------
>
>                 Key: FOP-2644
>                 URL: https://issues.apache.org/jira/browse/FOP-2644
>             Project: FOP
>          Issue Type: Bug
>          Components: font/opentype
>    Affects Versions: 2.1
>         Environment: All OS/Platforms affected
>            Reporter: Simone Rondelli
>
> In order to reduce the memory footprint of an ApacheFOP based application, 
> where I have several Java2D based renderers, I created the XML metrics for 
> the fonts used (more then 20). This way 
> {{org.apache.fop.render.java2d.ConfiguredFontCollection}} creates instances 
> of {{LazyFont}}.
> THE PROBLEM:
> The generated metrics.xml do not contain the GSUB, GPOS, GDEF tables info . 
> This led to an incorrect generated output. 
> Eg: instead of this  🇮🇹  the generated pdf has 🇮 🇹. 
> (I'm working on a for ApacheFOP that supports Surrogate Pairs and I'm testing 
> it with Emojis FOP-1969)



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

Reply via email to