Default font fallback is same as setFont()'s

This commit is contained in:
Artur Adib 2011-11-08 17:27:02 -05:00
parent 6fec709011
commit 8c182cb724

View File

@ -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;