Forum Bugs

Non-breaking space in rotated svg

blieck
When a non-breaking space is added in front of a rotated text strange squares appear behind the first letter of each word.

Check out the examples:
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN' 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:html='http://www.w3.org/1999/xhtml'>
<head>
<title>Sideways</title>
</head>
<body>
    <svg viewBox='-7 -160 7 160' style='width:14px;height:160px;border:thin solid #000' xmlns='http://www.w3.org/2000/svg'>
		<g>
			<text transform='rotate(-90) translate(2 0)' text-anchor='start' fill='#000000' style='font-family:arial;font-size:15px;'>
				<tspan>Rotated text without spaces</tspan>
			</text>
		</g>
    </svg>
</body>
</html>

AND
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN' 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:html='http://www.w3.org/1999/xhtml'>
<head>
<title>Sideways</title>
</head>
<body>
	<svg viewBox='-7 -160 7 160' style='width:14px;height:160px;border:thin solid #000' xmlns='http://www.w3.org/2000/svg'>
		<g>
			<text transform='rotate(-90) translate(2 0)' text-anchor='start' fill='#000000' style='font-family:arial;font-size:15px;'>
				<tspan>&nbsp;Rotated with spaces (&nbsp;)</tspan>
			</text>
		</g>
	</svg>
</body>
</html>
mikeday
Which version of Prince are you running, and on which platform? I'm having trouble reproducing this issue here, there are no boxes visible in the text.
blieck
I use Prince 7.1 on Windows. Also tried it with Prince 7.0 beta 1 on RHEL/CentOS 5 x86_64. In both cases the pdf contains little squares. I attached the input html and output pdf to this post.
  1. sideways.zip23.6 kB
mikeday
That looks like a bug in Prince. Thanks for letting us know, we will do our best to fix it! :)
mikeday
This bug has been fixed in Prince 8.0, beta version available now. Thanks again for letting us know. :)