From 39fc36d1a43ca3a2e27967bbdf6ba340b4814242 Mon Sep 17 00:00:00 2001 From: techninja Date: Sat, 25 Oct 2014 01:11:58 -0700 Subject: [PATCH] Update hersheytext library to manage its own stroke weight better. --- resources/scripts/lib/hersheytext.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/scripts/lib/hersheytext.js b/resources/scripts/lib/hersheytext.js index b044f31..5686252 100644 --- a/resources/scripts/lib/hersheytext.js +++ b/resources/scripts/lib/hersheytext.js @@ -41,7 +41,8 @@ cncserver.renderText = function(s, options) { // Create central group var $group = $('').attr({ id: options.id, - style: 'stroke:#000000; fill:none;', + stroke: 'black', + fill: 'none', transform: 'scale(' + options.scale + ') ' + 'translate(' + options.pos.x + ',' + options.pos.y + ')' @@ -71,7 +72,8 @@ cncserver.renderText = function(s, options) { $groupLine.append( $('').attr({ d: font[index].d, - style: 'stroke:#000000; fill:none;', + stroke: 'black', + 'stroke-width': 2, fill: 'none', transform: 'translate(' + offset.left + ', ' + offset.top + ')', letter: word[i]