kangax/fabric.js — pull request #1488 by asturur (2014-07-16 12:11:01+00:00)
Title: Various fixes

Various fixes
misc.js -When we group SVG's elements we should return always a pathgroup, it semplifies the logic after.
text.class.js -Fixes text position broken from 1.4.x onwards in svg parsing.
I never looked at it, so it is a trial and error fix.
Anyway originX ( and so text-anchor from the svg properties ) was not correctly supported.
Something in native rendering is not fine, characters are less spaced than on svg rendering by browser.
Position looks corrects but you can see is never pixel perfect on rendering
polyline.class.js - Fixes polyline in svg rendering import, skipoffset come just from FromElement method.
polygon.class.js - Fixes position in polygon from svg import skipoffset come just fromElement method
path.class.js - Fix path position in svg import with transformMatrix
parser.js - Viewbox fix.
Viewbox generates a transform matrix of translating and scaling that should be applied to all elements.
We do this creating a element with a transformMatrix that then descend on all elements using the already existing parsing functions.

Tested and uploaded here
http://www.deltalink.it/andreab/fabric/a.html

to compare fabric 1.4.8 with similar method
http://www.deltalink.it/andreab/fabric/b.html

I didn't modified line.class.js as i did before because now that fix is not more working. Gonna look at it.
If you see the green line on the right is not in correct position. with or without fix.

![image](https://cloud.githubusercontent.com/assets/1194048/3598395/2f4e8b68-0ce2-11e4-8e89-aa984de4ba15.png)