Fix font rendering for IE with multiple inherited fonts

This commit is contained in:
Niklas von Hertzen 2014-11-02 22:15:48 +02:00
parent 706b2abb19
commit 525b5c4f36
3 changed files with 3 additions and 3 deletions

2
dist/html2canvas.js vendored
View File

@ -2874,7 +2874,7 @@ CanvasRenderer.prototype.shape = function(shape) {
};
CanvasRenderer.prototype.font = function(color, style, variant, weight, size, family) {
this.setFillStyle(color).font = [style, variant, weight, size, family].join(" ");
this.setFillStyle(color).font = [style, variant, weight, size, family].join(" ").split(",")[0];
};
CanvasRenderer.prototype.fontShadow = function(color, offsetX, offsetY, blur) {

File diff suppressed because one or more lines are too long

View File

@ -72,7 +72,7 @@ CanvasRenderer.prototype.shape = function(shape) {
};
CanvasRenderer.prototype.font = function(color, style, variant, weight, size, family) {
this.setFillStyle(color).font = [style, variant, weight, size, family].join(" ");
this.setFillStyle(color).font = [style, variant, weight, size, family].join(" ").split(",")[0];
};
CanvasRenderer.prototype.fontShadow = function(color, offsetX, offsetY, blur) {