Skip to content
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

Inkscape: Text rendering in Chrome #4

Open
c0c0n3 opened this issue Mar 19, 2017 · 0 comments
Open

Inkscape: Text rendering in Chrome #4

c0c0n3 opened this issue Mar 19, 2017 · 0 comments
Labels

Comments

@c0c0n3
Copy link
Owner

c0c0n3 commented Mar 19, 2017

Platform

Windows 7, Inkscape 0.91, Chrome '40.0.2214.115 m' and '41.0.2272.76 m'

Description

If a text block in SVG is styled with white-space:normal;, words will overlap.
Open test.svg in Chrome for an example.
(Note that Internet Explorer 11 renders the text correctly.)

test.svg file

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
     xmlns="http://www.w3.org/2000/svg"
     width="1000px"
     height="1000px"
     viewBox="0 0 1000 1000"
     version="1.1">
  <g>
    <text xml:space="preserve"
              style="white-space:normal;"
              x="10"
              y="50">
      <tspan>words will overlap in chrome if CSS 'white-space:normal' is set...</tspan>
    </text>
  </g>
</svg>

Notes

This is an old issue I had on Windows 7 in 2014. Something must have changed
in my Inkscape internal settings on Windows (Inkscape version 0.91) and Inkscape
started adding white-space:normal; to the style of my text.
Until a few days before noticing the issue, Inkscape (0.91, same build) would not
add that style to the text. For example see

  • categories/cat-of-all-cats/commutative-squares/com-squares-in-prod-cat.svg

in the maths-notes repo; text in there has no white-space:normal; style.
The Inkscape prefs had it, so I removed it ; keep an eye on it to see if the issue
resurfaces...

@c0c0n3 c0c0n3 added the wontfix label Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant