From 2c97b040ac083baeb61ce55dc7cde3365c176b07 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 19 Jan 2017 10:38:12 -0700 Subject: [PATCH] Added support for spaces --- scripts/modules/typographe.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/modules/typographe.js b/scripts/modules/typographe.js index 87dd04b..283246c 100644 --- a/scripts/modules/typographe.js +++ b/scripts/modules/typographe.js @@ -25,6 +25,7 @@ function Typographe(rune) this.passive = function(cmd) { + this.layer.clear(); if(cmd.variable("text")){ this.add_text(this.layer.context(),cmd); } @@ -34,7 +35,7 @@ function Typographe(rune) { var ctx = context; - var text = cmd.variable("text").value; + var text = cmd.variable("text").value.replace("_"," "); var position = cmd.position() ? cmd.position() : new Position(20,40); var color = cmd.color() ? cmd.color() : new Color("#000000"); var size = cmd.value() ? cmd.value().int : 40;