mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Default font fallback is same as setFont()'s
This commit is contained in:
parent
6fec709011
commit
8c182cb724
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue