Skip to content

Commit 8c182cb

Browse files
committed
Default font fallback is same as setFont()'s
1 parent 6fec709 commit 8c182cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ var CanvasGraphics = (function canvasGraphics() {
494494
var fontHeight = text.geom.vScale * fontSize;
495495

496496
div.style.fontSize = fontHeight + 'px';
497-
div.style.fontFamily = this.current.font.loadedName || 'serif';
497+
div.style.fontFamily = this.current.font.loadedName || 'sans-serif';
498498
div.style.left = text.geom.x + 'px';
499499
div.style.top = (text.geom.y - fontHeight) + 'px';
500500
div.innerHTML = text.str;

0 commit comments

Comments
 (0)