Commits

Anonymous committed 7e4f810

pt to px in the svg output (as it apparently was in 2005 when the fonts used to come our right)

Comments (0)

Files changed (2)

trunk/src/SvgGraphics2D.java

 		if (backmaskcol != null)
 		{
 			float strokewidthpt = 4.0F; 
-			String style = String.format("stroke: %s; stroke-width: %.1fpt; stroke-linecap: round; stroke-linejoin: round; fill: %s; fill-opacity: 1.0", backmaskcol, strokewidthpt, backmaskcol);
+			String style = String.format("stroke: %s; stroke-width: %.1fpx; stroke-linecap: round; stroke-linejoin: round; fill: %s; fill-opacity: 1.0", backmaskcol, strokewidthpt, backmaskcol);
 			writeshape(totalarea, style, premain);
 		}
 
 
 	String stringifyOutline()
 	{
-		return String.format("stroke: %s; stroke-width: %.1fpt; stroke-linecap: round; fill: none", crgb, strokewidth);
+		return String.format("stroke: %s; stroke-width: %.1fpx; stroke-linecap: round; fill: none", crgb, strokewidth);
 	}
 
 	String stringifyText()
 			return "XXX";
 		}
         String fontfamily = currfont.getFamily(); 
-        fontfamily = "Arial"; 
-		return String.format("font-family: %s; font-size: %.1fpt; font-style: %s; font-weight: %s; fill: %s", fontfamily, currfont.getSize2D(), (currfont.isItalic() ? "italic" : "normal"), (currfont.isBold() ? "bold" : "normal"), crgb);
+		return String.format("font-family: %s; font-size: %.1fpx; font-style: %s; font-weight: %s; fill: %s", fontfamily, currfont.getSize2D(), (currfont.isItalic() ? "italic" : "normal"), (currfont.isBold() ? "bold" : "normal"), crgb);
 	}
 
 	public String getClassName(String currstyle)

trunk/src/TunnelTopParser.java

 ////////////////////////////////////////////////////////////////////////////////
 // TunnelX -- Cave Drawing Program
-// Copyright (C) 2002  Julian Todd.
+// Copyright (C) 2011  Julian Todd.
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License
 ////////////////////////////////////////////////////////////////////////////////
 package Tunnel;
 
+// See TopParser/readtop.py for the source code
+
 import java.awt.geom.Line2D;
 
 import java.util.List;