From 9012fbd0105400995e0271c606bf2dc7ccb03cd1 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Tue, 6 Sep 2011 15:11:07 +0200 Subject: [PATCH] Use sans-serif for font fallback by default --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 35da1e332..4a7d0fe74 100644 --- a/pdf.js +++ b/pdf.js @@ -4824,7 +4824,7 @@ var CanvasGraphics = (function() { (fontObj.bold ? 'bold' : '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; } },