mirror of
				https://github.com/niklasvh/html2canvas.git
				synced 2023-08-10 21:13:10 +03:00 
			
		
		
		
	fixed font-weight normal issue for IE
This commit is contained in:
		@@ -22,9 +22,12 @@ html2canvas.prototype.newText = function(el,textNode,ctx){
 | 
				
			|||||||
    //text = $.trim(text);
 | 
					    //text = $.trim(text);
 | 
				
			||||||
    if (text.length>0){
 | 
					    if (text.length>0){
 | 
				
			||||||
        switch(bold){
 | 
					        switch(bold){
 | 
				
			||||||
            case "401":
 | 
					            case 401:
 | 
				
			||||||
                bold = "bold";
 | 
					                bold = "bold";
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
 | 
					                case 400:
 | 
				
			||||||
 | 
					                bold = "normal";
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
@@ -37,6 +40,7 @@ html2canvas.prototype.newText = function(el,textNode,ctx){
 | 
				
			|||||||
        renderList,
 | 
					        renderList,
 | 
				
			||||||
        renderWords = false;
 | 
					        renderWords = false;
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					        	
 | 
				
			||||||
        text_align = text_align.replace(["-webkit-auto"],["auto"])
 | 
					        text_align = text_align.replace(["-webkit-auto"],["auto"])
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user