[
https://issues.apache.org/jira/browse/FOP-2985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17745033#comment-17745033
]
Dave Roxburgh commented on FOP-2985:
------------------------------------
Thanks for the report and the test assets, [~juani15151]
The attached patch resolves this issue for PDF and AFP.
[^p5.patch]
> SVG Images inherit font configuration from sibling objects.
> -----------------------------------------------------------
>
> Key: FOP-2985
> URL: https://issues.apache.org/jira/browse/FOP-2985
> Project: FOP
> Issue Type: Bug
> Components: image/svg
> Reporter: Juan
> Priority: Minor
> Attachments: SVG-letter-spacing.patch, input.fo, p5.patch, sample.svg
>
>
> Given the sample [^input.fo] (adjust the path to sample.svg), the letter
> spacing of an inline element in a previous block is being applied also to an
> external-graphic element on a different block.
> The letter spacing property in the inline element should not affect the
> external-graphic in a different block.
> Additionally, setting letter-spacing on the external-graphic or it's parent
> block has no effect and the content still used the letter-spacing of the
> previous inline text.
>
> The given patch [^SVG-letter-spacing.patch] does fix the issue with
> letter-spacing, altough *it might need a more generic approach*.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)