fixed font-weight normal issue for IE

This commit is contained in:
Niklas von Hertzen 2011-07-18 22:45:11 +03:00
parent bb907efb75
commit 7b68a46d52

View File

@ -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"])