From 0393936d0ed7f38c7af32e889e7af55e5aae4b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=A9la=20Palkovics?= Date: Wed, 17 Sep 2014 15:05:19 +0200 Subject: [PATCH] Update canvas2svg.js Changed default to alphabetic --- canvas2svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canvas2svg.js b/canvas2svg.js index 908594e..16d6a75 100644 --- a/canvas2svg.js +++ b/canvas2svg.js @@ -69,7 +69,7 @@ function getDominantBaseline(textBaseline) { //INFO: not supported in all browsers var mapping = {"alphabetic": "alphabetic", "hanging": "hanging", "top":"text-before-edge", "bottom":"text-after-edge", "middle":"central"}; - return mapping[textBaseline] || mapping.start; + return mapping[textBaseline] || mapping.alphabetic; } // Unpack entities lookup where the numbers are in radix 32 to reduce the size