We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fill/stroke fill color is not serialized correctly.
Example:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> <g font-family="Andalus,Diwani Letter,serif"> <path d="M10,120 L470,120" stroke="#BBB"/> <path d="M10,240 L470,240" stroke="#BBB"/> <text text-anchor="middle" x="240" y="120" font-size="140" xml:lang="ar" fill="#700">آلات</text> <text text-anchor="middle" x="240" y="240" font-size="140" xml:lang="ar" fill="#700">ثلاثة</text> </svg>
Parsed and serialized as:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> <g> <path d="M 10 120L 470 120" fill="black" stroke="#000BBB" stroke-width="1.0"/> <path d="M 10 240L 470 240" fill="black" stroke="#000BBB" stroke-width="1.0"/> <text y="120" x="240" font-family="Andalus,Diwani Letter,serif" font-size="140" font-weight="normal" text-anchor="middle" fill="#000700">آلات</text> <text y="240" x="240" font-family="Andalus,Diwani Letter,serif" font-size="140" font-weight="normal" text-anchor="middle" fill="#000700">ثلاثة</text> </g> </svg>
The text was updated successfully, but these errors were encountered:
Now it is serialized to
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" > <g> <g> <path d="M 10 120L 470 120" fill="black" stroke="#BBBBBB" stroke-width="1.0"/> <path d="M 10 240L 470 240" fill="black" stroke="#BBBBBB" stroke-width="1.0"/> <text font-family="Andalus,Diwani Letter,serif" font-size="140" font-weight="normal" text-anchor="middle" fill="#770000" transform="translate(240,120)" >آلات</text> <text font-family="Andalus,Diwani Letter,serif" font-size="140" font-weight="normal" text-anchor="middle" fill="#770000" transform="translate(240,240)" >ثلاثة</text> </g> </g> </svg>
Colors are fine. Vertical text alignment is not, but that's another issue #391
Sorry, something went wrong.
kayuri
No branches or pull requests
Fill/stroke fill color is not serialized correctly.
Example:
Parsed and serialized as:
The text was updated successfully, but these errors were encountered: