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

Ali Rizvi commented on FOP-2983:
--------------------------------

h3. Steps for fixing bugs within FOP code
 # Open the following file in the fop-2.9-src folder: 
...\fop-2.9-src\fop-2.9\fop-core\src\main\java\org\apache\fop\svg\AbstractFOPTranscoder.java
 and move line 163 down to after line 165 and save this file.
before: 
!image-2024-2-13_11-55-53.png!
!https://confluence.mda.ca/download/attachments/294510590/image-2024-2-13_11-55-53.png?version=1&modificationDate=1707839753750&api=v2|height=250!
after:
!https://confluence.mda.ca/download/attachments/294510590/image-2024-2-13_11-57-21.png?version=1&modificationDate=1707839841743&api=v2|height=250!!image-2024-2-13_11-57-21.png!


 # Open 
...\fop-2.9-src\fop-2.9\fop-transcoder-allinone\src\tools\resources\assembly\assembly.xml
 # Change line 25 to include all folders and files to:
before:
!https://confluence.mda.ca/download/attachments/294510590/image-2024-2-13_13-2-57.png?version=1&modificationDate=1707843777880&api=v2|height=209!!image-2024-2-13_13-2-57.png!
after:
!https://confluence.mda.ca/download/attachments/294510590/image-2024-2-13_13-4-5.png?version=1&modificationDate=1707843845947&api=v2|height=209!!image-2024-2-13_13-4-5.png!
 # Make sure to save the changes.

h3. Steps to repackage and build Batik 1.17 with fixed FOP issues
 # Open command line and navigate to the .../fop-2.9-src/fop-2.9 folder/
 # Run mvn clean install
 # Run mvn package -Dmaven.test.skip
 # Copy the file 
...\fop-2.9-src\fop-2.9\fop-transcoder-allinone\target\fop-transcoder-allinone-2.9.jar
 to ...\batik-bin-1.17\batik-1.17\lib and replace the JAR already in this 
folder.
 # Copy the file ...\fop-2.9-src\fop-2.9\fop\lib\commons-io-2.11.0.jar, 
commons-io.NOTICE.txt, and  commons-io.LICENSE.txt to 
...\batik-bin-1.17\batik-1.17\lib and paste it here.

> [PATCH] Font auto-detection doesn't work
> ----------------------------------------
>
>                 Key: FOP-2983
>                 URL: https://issues.apache.org/jira/browse/FOP-2983
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: 2.5, 2.6
>         Environment: Apache Maven 3.6.0
> Java version: 1.8.0_181, vendor: Oracle Corporation
> Default locale: ru_RU, platform encoding: Cp1251
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>            Reporter: Sergey Gorbunov
>            Priority: Critical
>         Attachments: fonts-auto-detect.patch, image-2024-2-13_11-55-53.png, 
> image-2024-2-13_11-57-21.png, image-2024-2-13_13-2-57.png, 
> image-2024-2-13_13-4-5.png
>
>
> When constructing a tree with a configuration, the node for auto-detection is 
> added to the wrong parent node. As a result, the flag remains with a false.
> Detected when trying to convert SVG to PDF with Cyrillic characters. Since 
> the correct font was not detected automatically, incorrect characters were 
> displayed after conversion.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to