You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
I am generating svg output from canvas but svg output is not proper. I checked with fabric js - version 1.5 and 1.6.2.
my canvas size is width : 500 and height : 147.75053879310343
Below is json which i am loading on canvas:
{"objects":[{"type":"text","originX":"center","originY":"center","left":250,"top":79.47,"width":28,"height":6.55,"fill":"#FFFFFF","stroke":null,"strokeWidth":1,"strokeDashArray":null,"strokeLineCap":"butt","strokeLineJoin":"miter","strokeMiterLimit":10,"scaleX":13.79,"scaleY":13.79,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","globalCompositeOperation":"source-over","text":"JSON DATA","fontSize":5,"fontWeight":"normal","fontFamily":"Times New Roman","fontStyle":"normal","lineHeight":1.16,"textDecoration":"","textAlign":"left","textBackgroundColor":""}],"background":"#f22400"}
please refer this screen shot :
this is svg file which i have got from this canvas : svg-output.txt
Below is code of generated Svg :
Created with Fabric.js 1.5.0
JSON DATA
Is there any font Issue ? Please provide permanent solution of any type font and style applied on text object on canvas and get proper output - feasible with inkscape.
Activity