Use sans-serif for font fallback by default
This commit is contained in:
parent
f7ee90cc8c
commit
9012fbd010
2
pdf.js
2
pdf.js
@ -4824,7 +4824,7 @@ var CanvasGraphics = (function() {
|
|||||||
(fontObj.bold ? 'bold' : 'normal');
|
(fontObj.bold ? 'bold' : 'normal');
|
||||||
|
|
||||||
var italic = fontObj.italic ? 'italic' : 'normal';
|
var italic = fontObj.italic ? 'italic' : 'normal';
|
||||||
var rule = italic + ' ' + bold + ' ' + size + 'px "' + name + '"';
|
var rule = italic + ' ' + bold + ' ' + size + 'px "' + name + '", "sans-serif"';
|
||||||
this.ctx.font = rule;
|
this.ctx.font = rule;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user