diff --git a/editor/svg-editor.js b/editor/svg-editor.js index f46de75a..25bbbb2c 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -113,6 +113,11 @@ TODOS color: '000000', // solid black opacity: 1 }, + text: { + stroke_width: 0, + font_size: 24, + font_family: 'serif' + }, initOpacity: 1, colorPickerCSS: null, // Defaults to 'left' with a position equal to that of the fill_color or stroke_color element minus 140, and a 'bottom' equal to 40 initTool: 'select', diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 807b54c1..67e9344e 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -165,9 +165,9 @@ var all_properties = { all_properties.text = $.extend(true, {}, all_properties.shape); $.extend(all_properties.text, { fill: '#000000', - stroke_width: 0, - font_size: 24, - font_family: 'serif' + stroke_width: curConfig.text.stroke_width, + font_size: curConfig.text.font_size, + font_family: curConfig.text.font_family }); // Current shape style properties