From 8c182cb72428465b94e569e56f7029a37ca38200 Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Tue, 8 Nov 2011 17:27:02 -0500 Subject: [PATCH] Default font fallback is same as setFont()'s --- src/canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canvas.js b/src/canvas.js index 83d9c34d1..590af469c 100644 --- a/src/canvas.js +++ b/src/canvas.js @@ -494,7 +494,7 @@ var CanvasGraphics = (function canvasGraphics() { var fontHeight = text.geom.vScale * fontSize; div.style.fontSize = fontHeight + 'px'; - div.style.fontFamily = this.current.font.loadedName || 'serif'; + div.style.fontFamily = this.current.font.loadedName || 'sans-serif'; div.style.left = text.geom.x + 'px'; div.style.top = (text.geom.y - fontHeight) + 'px'; div.innerHTML = text.str;