Copy link to clipboard
Copied
Hi everyone! At our workspace we import PDFs in illustraotr and tag components in electrical schemes. These tags are later scanned by a system so they need to work well.
We used corel draw but have now changed to Adobe and Illustrator. We now face a very strange problem when writing things like [A511].
If I create a new documet, write [A511] and export as a svg file it spits out this:
<?xml version="1.0" encoding="UTF-8"?>
<svg id="a" data-name="Lager 1" xmlns="http://www.w3.org/2000/svg" width="11.925mm" height="5.007mm" viewBox="0 0 33.803 14.194">
<text transform="translate(0 10.298)" style="fill: #1d1d1b; font-family: ArialMT, Arial; font-size: 12px;"><tspan x="0" y="0">[A5</tspan><tspan x="18.012" y="0" style="letter-spacing: -.074em;">1</tspan><tspan x="23.795" y="0">1]</tspan></text>
</svg>
First I thought it was the svg that did something strange but when I save the file as an .eps it looks like this in the code:
XDJLWW+ArialMT*1 [12 0 0 -12 0 0 ]msf
0 10.2979 mo
([A51)sh
23.7949 10.2979 mo
(1])
[6.67383 0 ]xsh
Again we can see that the [A51 has been split up.
The even stranger thing is this seems to only happen when we write something with 11, I mean two ones in a row. If I test the above example but instead write [A555] it looks like this in eps:
0 10.0439 mo
([A555])
[3.27637 7.34375 6.15576 6.15576 6.15576 0 ]xsh
I just have no clue why it is inconsistent. It seems to add tspan randomly.
Has anyone encountered similar things and have a workaround or a better way of doing this? Someone mentioned that tspan sometimes dissapear when you save as a svg, reopen and save over the svg again
Copy link to clipboard
Copied
Hm, setting kerning to 0 instead of auto just maybe fixed this issue