-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG AddPicture: Incorrectly renders text in SVG #681
Comments
So I'll need to keep trying to find a problem image
One theory is that PowerPoint doesn't keep Here is an example tag from the source file: <text
xml:space="preserve"
style="font-size:6.35px;font-family:'Segoe UI';-inkscape-font-specification:'Segoe UI';text-align:center;letter-spacing:0px;text-anchor:middle;fill:#ffffff;stroke:#ff0000;stroke-width:0"
x="43.506058"
y="40.64146"
id="text1"><tspan
sodipodi:role="line"
id="tspan1"
style="font-size:6.35px;fill:#ffffff;stroke-width:0"
x="43.506058"
y="40.64146">1x1</tspan></text> When adding this to a presentation manually using the client app, the SVG is altered to this: <text id="text1" stroke="#FF0000" stroke-width="0" fill="#FFFFFF" font-family="Segoe UI"
font-size="6.35" text-anchor="middle" xml:space="preserve" x="43.5061" y="40.6415">
<tspan font-size="6.35" x="43.5061" y="40.6415">1x1</tspan>
</text> Thus, the relevant components of the SVG library has a In the meantime, just commit your text to paths before you add SVGs with text. |
Ah, the problem is that there is a bug in the SVG library's <text x="43.50606" y="40.64146" letter-spacing="0px" id="text1" xml:space="preserve" stroke-width="0" text-anchor="middle" font-family=""Segoe UI"" font-size="6.35px" style="-inkscape-font-specification:"Segoe UI";text-align:center;fill:white;stroke:red;">
<tspan x="43.50606" y="40.64146" id="tspan1" stroke-width="0" font-size="6.35px" sodipodi:role="line">1x1</tspan>
</text> That's wrong because everything inside the tag should be rendered, INCLUDING the white space. Solution is to not ask the Svg library to write the stream back out. Instead, use user-supplied stream. |
The text was updated successfully, but these errors were encountered: