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

zouari commented on FOP-2929:
-----------------------------

I reproduce the problem.
I think there is a conflict between the numbers associated with the character 
and the numbers associated with the glyphs of the composite characters.
I prepared a patch that solves the problem(i'm looking for composite 
characters, i'm looking for their glyph and i update the Mapped characters).
example
mappedGlyphs=[\{a=33, r=36, t=37, e=35, u=39, w=40, É=32, y=38, z=34, €=41}]
after updating Mapped characters =>
mappedGlyphs=[\{a=33, r=36, t=37, e=35, u=39, E=40, w=41, É=32, y=38, z=34, 
€=42}]

[^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