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

zouari updated FOP-2929:
------------------------
    Attachment: patch.patch

> Wrong printed glyph with PCL renderer and TTF font 
> ---------------------------------------------------
>
>                 Key: FOP-2929
>                 URL: https://issues.apache.org/jira/browse/FOP-2929
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pcl
>    Affects Versions: 2.4
>            Reporter: Eric DE RANCOURT
>            Priority: Major
>         Attachments: cfg_1.xml, cfg_2.xml, patch.patch, test.if, test_1.pcl, 
> test_1.pcl_analysis.txt, test_2.pcl, test_2.pcl_analysis.txt
>
>
> Wrong printed characters when using True Type Font composite glyph.  
> Two tests : 
> *First test*: with the first configuration file (cfg_1.xml):
>  * The second block of text does not import new characters in the pcl soft 
> font
>  * There is a wrong selection of characters for the first character
> *Second test*: with a second configuration file (cfg_2.xml) using 
> "<optimize-resources> true </optimize-resources>":
>  * There is a wrong selection of glyphs for the first character
>  
> After some tests and code reading, it seems that the Arial font (and probably 
> other true type fonts) uses composite glyphs (for example: "É" uses the 
> glyphs 40 and 141). When adding new characters from 32 to 49, the glyph "40" 
> displays a "w" but not an "E" as expected in the PCL document.
> Mapped characters after second try : \{= 47, a = 33, c = 43, d = 46, e = 35, 
> É = 32, i = 49, € = 41, l = 48, n = 45, o = 44, r = 36 , s = 42, t = 37, u = 
> 39, w = 40, y = 38, z = 34}
>  
> Attachments:
>  * test.if: intermediate file containing the test document
>  * cfg_1.xml: first configuration file
>  * test_1.pcl: result of the first test
>  * test_1.pcl_analysis.txt: test_1.pcl Paraphernalia analysi
>  * cfg_2.xml: second configuration file
>  * test_2.pcl: result of the second test
>  * test_2.pcl_analysis.txt: test_2.pcl Paraphernalia analysis
>  
> Environment :
>  *  Apache Fop 2.4
>  *  Openjdk version "11.0.2"
>  *  Windows 10



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to