Browse Source

Default font fallback is same as setFont()'s

Artur Adib 14 years ago
parent
commit
8c182cb724
  1. 2
      src/canvas.js

2
src/canvas.js

@ -494,7 +494,7 @@ var CanvasGraphics = (function canvasGraphics() {
var fontHeight = text.geom.vScale * fontSize; var fontHeight = text.geom.vScale * fontSize;
div.style.fontSize = fontHeight + 'px'; 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.left = text.geom.x + 'px';
div.style.top = (text.geom.y - fontHeight) + 'px'; div.style.top = (text.geom.y - fontHeight) + 'px';
div.innerHTML = text.str; div.innerHTML = text.str;

Loading…
Cancel
Save