[jira] [Updated] (FOP-2865) [PATCH] stroke-opacity is not honored on svg:text while conveting svg to pdf

2022-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-2865:
---
Summary: [PATCH] stroke-opacity is not honored on svg:text while conveting 
svg to pdf  (was: stroke-opacity is not honored on svg:text while conveting svg 
to pdf)

> [PATCH] stroke-opacity is not honored on svg:text while conveting svg to pdf
> 
>
> Key: FOP-2865
> URL: https://issues.apache.org/jira/browse/FOP-2865
> Project: FOP
>  Issue Type: Bug
>Reporter: Abdul Vazid
>Priority: Major
>  Labels: fop
>
> I am upgrading batik-1.7 to 1.11 and fop-0.94 to 2.2. I am using 
> PDFTranscoder of fop to convert SVG to PDF in my application. stroke-opacity 
> is applied to text in svg. Before upgrading pdf looks good and result is as 
> expected with opacity. But after upgrading stroke-opacity is not being 
> applied to text.
> *Below is the code used to convert svg to pdf:*
> {code:java}
> Transcoder transcoder = new PDFTranscoder();
> TranscoderInput input = new TranscoderInput(svgFile.toURI().toString());
> ByteArrayOutputStream outStream = new ByteArrayOutputStream();
> TranscoderOutput output = new TranscoderOutput(outStream);
> transcoder.transcode(input, output);{code}
>  
> *SVG Used:*
> {noformat}
> 
> http://www.w3.org/2000/svg; 
> xmlns:xlink="http://www.w3.org/1999/xlink; height="418" viewBox="0,0 
> 65416,45424" width="816" xml:space="preserve">
> 
>  .P{
> font-family:"Arial";
> font-weight:normal;
> font-size:247px;
> font-family:"Lucida Sans";
> font-style:normal;
> stroke:#000;
> stroke-width:16px;
> stroke-dasharray:none;
> stroke-linejoin:miter;
> stroke-miterlimit:10;
> stroke-width:0.5px;
> stroke-linecap:square;
> stroke-opacity:1.0;
> fill:none;
> fill-opacity:0.0;
> fill-rule:evenodd;
> }
> .M{
> font-family:"Arial";
> font-weight:normal;
> font-size:282px;
> font-style:normal;
> stroke:#00F;
> stroke-dasharray:none;
> stroke-linejoin:miter;
> stroke-miterlimit:10;
> stroke-width:2px;
> stroke-linecap:square;
> stroke-opacity:1.0;
> fill:#00F;
> fill-rule:evenodd;
> fill-opacity:1.0;
> }
> .dimmed{
> stroke-opacity:1.0;
> fill-opacity:0.0;
> }
> ]]>
> 
> 
> 
>  d="M7964,25320h5669m-5669,0v1905m0,-1401h5669m-5669,467h5669m-5669,467h5669m-5669,467h5669m-4968,-1401v1401m934,-1401v1401m785,-1401v1401m743,-1401v1401m1295,-1401v1401m1210,-1905v1905"/>
> CONN3
> Cav.
> 
> 
> 
> {noformat}
> {{Stroke-opacity in "dimmed" class is not showing any effect on the text 
> "CONN3" after upgrading batik and fop.}}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Assigned] (FOP-2659) [PATCH] Arabic glyph not substituted

2022-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-2659:
--

Assignee: (was: Simon Steiner)

> [PATCH] Arabic glyph not substituted
> 
>
> Key: FOP-2659
> URL: https://issues.apache.org/jira/browse/FOP-2659
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Priority: Major
> Attachments: arabicbold.patch, fop.xconf, test.fo
>
>
> Arial bold looks different from Arial non bold
> fop test.fo -c fop.xconf out.pdf
> Patch fails on some serialized data tests, can be fixed by calling 
> GenerateArabicTestData
> https://www.microsoft.com/typography/otfntdev/arabicot/features.aspx



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (FOP-2414) [PATCH] Borders with dashed style are rendered as solid

2022-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-2414:
---
Summary: [PATCH] Borders with dashed style are rendered as solid  (was: 
[PNG Renderer] Borders with dashed style are rendered as solid)

> [PATCH] Borders with dashed style are rendered as solid
> ---
>
> Key: FOP-2414
> URL: https://issues.apache.org/jira/browse/FOP-2414
> Project: FOP
>  Issue Type: Bug
>  Components: image/png
>Affects Versions: 2.5
>Reporter: Seifeddine Dridi
>Priority: Major
> Attachments: test.fo, test.pdf, test.png, wip.patch
>
>
> The png renderer does not take into account the different border styles, 
> borders are always rendered as solid regardless of the style that was set. 
> The same is also true for rounded borders.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Assigned] (FOP-2414) [PNG Renderer] Borders with dashed style are rendered as solid

2022-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-2414:
--

Assignee: (was: Simon Steiner)

> [PNG Renderer] Borders with dashed style are rendered as solid
> --
>
> Key: FOP-2414
> URL: https://issues.apache.org/jira/browse/FOP-2414
> Project: FOP
>  Issue Type: Bug
>  Components: image/png
>Affects Versions: 2.5
>Reporter: Seifeddine Dridi
>Priority: Major
> Attachments: test.fo, test.pdf, test.png, wip.patch
>
>
> The png renderer does not take into account the different border styles, 
> borders are always rendered as solid regardless of the style that was set. 
> The same is also true for rounded borders.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Assigned] (FOP-2865) stroke-opacity is not honored on svg:text while conveting svg to pdf

2022-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-2865:
--

Assignee: (was: Simon Steiner)

> stroke-opacity is not honored on svg:text while conveting svg to pdf
> 
>
> Key: FOP-2865
> URL: https://issues.apache.org/jira/browse/FOP-2865
> Project: FOP
>  Issue Type: Bug
>Reporter: Abdul Vazid
>Priority: Major
>  Labels: fop
>
> I am upgrading batik-1.7 to 1.11 and fop-0.94 to 2.2. I am using 
> PDFTranscoder of fop to convert SVG to PDF in my application. stroke-opacity 
> is applied to text in svg. Before upgrading pdf looks good and result is as 
> expected with opacity. But after upgrading stroke-opacity is not being 
> applied to text.
> *Below is the code used to convert svg to pdf:*
> {code:java}
> Transcoder transcoder = new PDFTranscoder();
> TranscoderInput input = new TranscoderInput(svgFile.toURI().toString());
> ByteArrayOutputStream outStream = new ByteArrayOutputStream();
> TranscoderOutput output = new TranscoderOutput(outStream);
> transcoder.transcode(input, output);{code}
>  
> *SVG Used:*
> {noformat}
> 
> http://www.w3.org/2000/svg; 
> xmlns:xlink="http://www.w3.org/1999/xlink; height="418" viewBox="0,0 
> 65416,45424" width="816" xml:space="preserve">
> 
>  .P{
> font-family:"Arial";
> font-weight:normal;
> font-size:247px;
> font-family:"Lucida Sans";
> font-style:normal;
> stroke:#000;
> stroke-width:16px;
> stroke-dasharray:none;
> stroke-linejoin:miter;
> stroke-miterlimit:10;
> stroke-width:0.5px;
> stroke-linecap:square;
> stroke-opacity:1.0;
> fill:none;
> fill-opacity:0.0;
> fill-rule:evenodd;
> }
> .M{
> font-family:"Arial";
> font-weight:normal;
> font-size:282px;
> font-style:normal;
> stroke:#00F;
> stroke-dasharray:none;
> stroke-linejoin:miter;
> stroke-miterlimit:10;
> stroke-width:2px;
> stroke-linecap:square;
> stroke-opacity:1.0;
> fill:#00F;
> fill-rule:evenodd;
> fill-opacity:1.0;
> }
> .dimmed{
> stroke-opacity:1.0;
> fill-opacity:0.0;
> }
> ]]>
> 
> 
> 
>  d="M7964,25320h5669m-5669,0v1905m0,-1401h5669m-5669,467h5669m-5669,467h5669m-5669,467h5669m-4968,-1401v1401m934,-1401v1401m785,-1401v1401m743,-1401v1401m1295,-1401v1401m1210,-1905v1905"/>
> CONN3
> Cav.
> 
> 
> 
> {noformat}
> {{Stroke-opacity in "dimmed" class is not showing any effect on the text 
> "CONN3" after upgrading batik and fop.}}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Assigned] (FOP-2929) [PATCH] Wrong printed glyph with PCL renderer and TTF font

2022-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-2929:
--

Assignee: (was: Simon Steiner)

> [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 
> " true ":
>  * 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.20.1#820001)