[ 
https://issues.apache.org/jira/browse/FOP-3369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Gibson  updated FOP-3369:
------------------------------
    Description: 
We recently found an issue with garbled text when importing a PDF image and 
"merge fonts" selected.

I've included a zip of a small reproduction.  Inside the ZIP can be found:
 * *sample.fo* - the FO that imports the pdf as an image
 * *pdfImage.pdf* - the pdf to be imported, containing a text table
 * *fopMergeFontsFalse.xconf* - xconf for not merging fonts
 * *fopMergeFontsTrue.xconf* - xconf for merging fonts
 * *fopCommands.txt* - text file with the two commands, one for merge, one for 
non-merge
 * *pdfMergeFontsFalse.pdf* - the output of the fop render without merging 
fonts, output ok
 * *pdfMergeFontsTrue.pdf* - the output of the fop render merging fonts, text 
output garbled.

It feels like the glyphs are incorrect in the embedded merged font.

 

We tested this with FOP 2.11 and 2.12 with the same result.

  was:
We recently found an issue with garbled text when importing a PDF image and 
"merge fonts" selected.

I've included a zip of a small reproduction.  Inside the ZIP can be found:
 * *sample.fo* - the FO that imports the pdf as an image
 * *pdfImage.pdf* - the pdf to be imported, containing a text table
 * *fopMergeFontsFalse.xconf* - xconf for not merging fonts
 * *fopMergeFontsTrue.xconf* - xconf for merging fonts
 * *fopCommands.txt* - text file with the two commands, one for merge, one for 
non-merge
 * *pdfMergeFontsFalse.pdf* - the output of the fop render without merging 
fonts, output ok
 * *pdfMergeFontsTrue.pdf* - the output of the fop render merging fonts, text 
output garbled.

It feels like the glyphs are incorrect in the embedded merged font.


> Garbled fonts with Merge Fonts when injecting PDF
> -------------------------------------------------
>
>                 Key: FOP-3369
>                 URL: https://issues.apache.org/jira/browse/FOP-3369
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Mark Gibson 
>            Priority: Major
>         Attachments: fop.zip
>
>
> We recently found an issue with garbled text when importing a PDF image and 
> "merge fonts" selected.
> I've included a zip of a small reproduction.  Inside the ZIP can be found:
>  * *sample.fo* - the FO that imports the pdf as an image
>  * *pdfImage.pdf* - the pdf to be imported, containing a text table
>  * *fopMergeFontsFalse.xconf* - xconf for not merging fonts
>  * *fopMergeFontsTrue.xconf* - xconf for merging fonts
>  * *fopCommands.txt* - text file with the two commands, one for merge, one 
> for non-merge
>  * *pdfMergeFontsFalse.pdf* - the output of the fop render without merging 
> fonts, output ok
>  * *pdfMergeFontsTrue.pdf* - the output of the fop render merging fonts, text 
> output garbled.
> It feels like the glyphs are incorrect in the embedded merged font.
>  
> We tested this with FOP 2.11 and 2.12 with the same result.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to