[
https://issues.apache.org/jira/browse/FOP-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16440411#comment-16440411
]
Radu Coravu commented on FOP-2617:
----------------------------------
[~lagivan] My patch was that when the field
"org.apache.fop.svg.NativeTextPainter.COMPLEX_SCRIPT_TEXT_LAYOUT_FACTORY" is
initialized to replace:
{code} if (ComplexGlyphLayout.mayRequireComplexLayout(aci)) {
return new ComplexGlyphLayout(aci, charMap, offset, frc);
} else {
return new GlyphLayout(aci, charMap, offset, frc);
}
{code}
with:
{code}
return new GlyphLayout(aci, charMap, offset, frc);
{code}
so avoiding completely to return a ComplexGlyphLayout.
> Text run using "dy" in SVG published to PDF is not properly placed vertically
> -----------------------------------------------------------------------------
>
> Key: FOP-2617
> URL: https://issues.apache.org/jira/browse/FOP-2617
> Project: FOP
> Issue Type: Bug
> Components: image/svg
> Affects Versions: 2.1
> Reporter: Radu Coravu
> Priority: Major
> Fix For: trunk
>
> Original Estimate: 3h
> Remaining Estimate: 3h
>
> If we have an SVG like:
> {code}<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
> <svg xmlns="http://www.w3.org/2000/svg"
> width="15.90551in" height="12.93701in"
> >
> <g >
> <text y="50">A <tspan dy="20">B</tspan></text>
> </g>
> </svg>{code}
> which gets embedded in an XSL-FO document and then using Apache FOP and Batik
> we build the PDF, the PDF does not contain the "B" text run on a line under
> the "A" text run. So it seems to ignore the "dy" attribute set on it.
> Using just Batik to convert the SVG to a binary image works though. So there
> is probably a problem somewhere in the PDF Graphics 2D or the PDF Text
> Painter.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)