# HG changeset patch # User Thinker K.F. Li # Date 1238130470 -28800 # Node ID 2212f515584c9d5c521dd2447095a6a711155eb0 # Parent 3d21115297ba0bbd15658141a94af39433f1f38e Adjust stroke width to more close to rendering result of Inkscape - The rendering result of Cairo for stroke is almost two-times wider than Inkscape. - Half stroke-wdith in svg2code.py. diff -r 3d21115297ba -r 2212f515584c examples/calculator/calculator_scr.svg --- a/examples/calculator/calculator_scr.svg Tue Mar 17 08:31:04 2009 +0800 +++ b/examples/calculator/calculator_scr.svg Fri Mar 27 13:07:50 2009 +0800 @@ -98,7 +98,7 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.9475" - inkscape:cx="-225.72559" + inkscape:cx="-141.75146" inkscape:cy="201.83531" inkscape:document-units="px" inkscape:current-layer="layer1" @@ -125,6 +125,15 @@ inkscape:groupmode="layer" id="layer1"> + + style="opacity:0.5;fill:#ff0000;stroke:none;stroke-width:0.8387413;stroke-opacity:1" /> + style="opacity:0.5;fill:#ff0000;stroke:none;stroke-width:0.8387413;stroke-opacity:1" /> + style="opacity:0.5;fill:#ff0000;stroke:none;stroke-width:0.8387413;stroke-opacity:1" /> + style="opacity:0.5;fill:#ff0000;stroke:none;stroke-width:0.8387413;stroke-opacity:1" /> > codefo, 'STROKE_WIDTH([%s], %f)dnl' % ( node_id, stroke_width) pass + elif prop_map.has_key('stroke'): + print >> codefo, 'STROKE_WIDTH([%s], %f)dnl' % ( + node_id, 0.5) + pass if prop_map.has_key('display'): display = prop_map['display'].strip().lower()