Forum How do I...?

Blank PDF when using text tag in SVG

next2heaven
I'm getting a blank PDF when using text. If I remove the 'text' tag then it work. Any ideas?

(oops...added the file twice.)

If the zip file doesn't work, this is the text lines I'm using:

<svg width="100%" height="100%"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
	<defs>
		
	</defs>
	<polygon points="-2451,682 -1751,682 -1751,0 -2451,0 -2451,682 " stroke-width="3" stroke="#355a33" fill="#eeeeee" />
	
	<text x="-1630" y="-108" text-anchor="end"  font-size="12" fill="grey">Scale 20 ft.</text>
	
	<line x1="-1751" y1="316" x2="-1751" y2="242" stroke-dasharray="5,3" stroke-width="2" stroke="#6f05d9"  />
	
</svg>
  1. demo.zip2.5 kB
  2. demo2.zip2.5 kB
mikeday
I couldn't open the ZIP file, but if I run Prince 7.0 on the SVG document I get a PDF with a gray rectangle in the middle and the "Scale 20 ft." up in the top right corner. Is that correct? In general it is best to have a viewBox attribute on the SVG to ensure correct display.
next2heaven
Yup that's it. I actually took the viewBox deal out to see if that was it (last resort type thing). I meant to put it back in. I think my problem is that I need to install fonts on the server. According to the log I'm getting this error in the log:

warning: no glyphs for character U+0053, fallback to '?'

So I'll try that. Thanks
mikeday
Yes, that means there are no available fonts.
next2heaven
Fixed. Installed the fonts and am all good.