Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.7
-
None
-
None
-
Operating System: All
Platform: All
Description
I generated some an SVG document using the SVGGraphics2D Java class. I first displayed the document in Safari which showed everything as expected, with the text in the right size. Trying the same in Firefox 3.6 and Opera 10.63 on MacOS X resulted in the text being the wrong size.
Looking at the source of the generated document I noticed that the font-size has no unit:
<g style="font-family:'Arial'; font-size:10;">
Changing the style by hand to include the unit resolves the font size issue in both Firefox and Opera:
<g style="font-family:'Arial'; font-size:10px;">