Jump to content
F_Kal

[AD 1.7.3] Exporting text to SVG gets erroneous <tspan> elements

Recommended Posts

I've been having an issue where I export a paragraph of text into SVG (without converting it to curves but relying on the system fonts) and some characters render differently in the browser (tested on both on the latest desktop firefox and the latest android samsung browser) as seen in the image below:

120793278_ScreenShot2019-12-10at17_52_02.png.3a16850f9765d08d4568c470ae82f847.png

On closer inspection it seems that the SVG adds certain tags to certain characters, isolating them - without an apparent reason however.

 

it is easy to reproduce:

  1. create a new document
  2. use the type text tool
  3. type "Other All" as text (using Arial font) (for some reason the issue appears if there is another word before the word All! Other tested strings that produce the fluff are "A All B" and the "Unlock All Features" string)
  4. export to SVG

The SVG should have isolated the Al characters into an unnecessary <tspan> element:

<g id="Artboard11" serif:id="Artboard1">
        <text x="209.036px" y="520.05px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:36px;">Other <tspan x="307.087px 331.099px " y="520.05px 520.05px ">Al</tspan>l</text>
    </g>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.