fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
28.8k stars 3.5k forks source link

i-text SVG underline color changed as stroke color #2415

Open sarath-prohaktiv opened 9 years ago

sarath-prohaktiv commented 9 years ago

Please follow the steps to reproduce the issue

1) Goto http://fabricjs.com/kitchensink/

2) Select a text

3) Add underline property

4) Add stroke property

5) Click "SVG" button

6) It will open SVG in tab. Now you can see underline color changed to border color

Thanks

asturur commented 9 years ago

It is not really changing. The svg uses both stroke and fill color for text decoration, in your case the stroke is covering the fill. In canvas we are drawing just with fill color. I do not know if we are gonna change this.

sarath-prohaktiv commented 9 years ago

Then the problem here is canvas & svg have different feel & look for i-text