Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SVGGraphics2D produces wrong SVG content due to mixing scale and translate transformations in a single transform matrix #29

Open
vladk-dev opened this issue Aug 31, 2014 · 0 comments

Comments

@vladk-dev
Copy link

The Freehep library produces wrong SVG for the EMF file I cannot attach. I believe it is due to mixing scale and translate transformations in a single transform matrix. The two following SVG blocks seems to be interpreted differently (at least by Firefox):

unreadable (produced by SVGGraphics2D):

<g transform="matrix(0.9688888888888889, 0, 0, 0.9575757575757575, -5194, -2138)">
<g transform="matrix(1, 0, 0, 1, 5227, 2242)">
<text fill-opacity="1" font-style="normal" font-family="Arial" font-weight="normal" stroke="none" fill="#000000" font-size="100" x="0" y="0">AB</text>
</g> <!-- transform -->
</g> <!-- transform -->

readable (modified by hand):

<g transform="matrix(0.9688888888888889, 0, 0, 0.9575757575757575, 0, 0)">
<g transform="matrix(1, 0, 0, 1, -5194, -2138)">
<g transform="matrix(1, 0, 0, 1, 5227, 2242)">
<text fill-opacity="1" font-style="normal" font-family="Arial" font-weight="normal" stroke="none" fill="#000000" font-size="100" x="0" y="0">AB</text>
</g> <!-- transform -->
</g> <!-- transform -->
</g> <!-- transform -->
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant