mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix font rendering for IE with multiple inherited fonts
This commit is contained in:
parent
706b2abb19
commit
525b5c4f36
2
dist/html2canvas.js
vendored
2
dist/html2canvas.js
vendored
@ -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) {
|
||||
|
2
dist/html2canvas.min.js
vendored
2
dist/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user