Skip to content

svg output is not prper #18

Open
Open

Description

@mukeshcp

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 :
svg-output-issue

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.

kangax @ can you please provide solution ?

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions