Skip to content

Commit 7b68a46

Browse files
committed
fixed font-weight normal issue for IE
1 parent bb907ef commit 7b68a46

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Text.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ html2canvas.prototype.newText = function(el,textNode,ctx){
1818
// apply text-transform:ation to the text
1919
textNode.nodeValue = this.textTransform(textNode.nodeValue,this.getCSS(el,"text-transform"));
2020
var text = this.trim(textNode.nodeValue);
21-
21+
2222
//text = $.trim(text);
2323
if (text.length>0){
2424
switch(bold){
25-
case "401":
25+
case 401:
2626
bold = "bold";
2727
break;
28+
case 400:
29+
bold = "normal";
30+
break;
2831
}
2932

3033

@@ -37,6 +40,7 @@ html2canvas.prototype.newText = function(el,textNode,ctx){
3740
renderList,
3841
renderWords = false;
3942

43+
4044
text_align = text_align.replace(["-webkit-auto"],["auto"])
4145

4246

0 commit comments

Comments
 (0)