From 90843848b1f2d81e7b2ffd128b3ad054585f2c07 Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Mon, 18 Jul 2011 22:45:11 +0300 Subject: [PATCH] fixed font-weight normal issue for IE --- src/Text.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Text.js b/src/Text.js index 1200630..6a0625f 100644 --- a/src/Text.js +++ b/src/Text.js @@ -18,13 +18,16 @@ html2canvas.prototype.newText = function(el,textNode,ctx){ // apply text-transform:ation to the text textNode.nodeValue = this.textTransform(textNode.nodeValue,this.getCSS(el,"text-transform")); var text = this.trim(textNode.nodeValue); - + //text = $.trim(text); if (text.length>0){ switch(bold){ - case "401": + case 401: bold = "bold"; break; + case 400: + bold = "normal"; + break; } @@ -37,6 +40,7 @@ html2canvas.prototype.newText = function(el,textNode,ctx){ renderList, renderWords = false; + text_align = text_align.replace(["-webkit-auto"],["auto"])