Fixed SVG header.
authorKoichi KAMICHI <kamichi@fonts.jp>
Tue, 2 Jan 2007 14:06:59 +0000 (14:06 +0000)
committerKoichi KAMICHI <kamichi@fonts.jp>
Tue, 2 Jan 2007 14:06:59 +0000 (14:06 +0000)
engine/polygons.js

index 6e95331..74e98dd 100755 (executable)
@@ -40,7 +40,8 @@ function Polygons(){
   \r
   function generateSVG(){ // string\r
     var buffer = "";\r
-    buffer += "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" baseProfile=\"full\">\n";\r
+    buffer += "<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n";\r
+    buffer += "<svg width=\"200\" height=\"200\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" baseProfile=\"full\">\n";\r
     buffer += "<g fill=\"black\">\n";\r
     for(var i = 0; i < this.array.length; i++){\r
       buffer += "<polygon points=\"";\r