mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Provides right fallback fonts for text layer
This commit is contained in:
parent
53c66f8a54
commit
ac7b6aeff4
4 changed files with 9 additions and 14 deletions
|
@ -181,7 +181,7 @@ SimpleTextLayerBuilder.prototype = {
|
|||
ctx.fill();
|
||||
|
||||
var textContent = bidi(text, -1);
|
||||
ctx.font = fontHeight + 'px sans-serif';
|
||||
ctx.font = fontHeight + 'px ' + fontName;
|
||||
ctx.fillStyle = 'black';
|
||||
ctx.fillText(textContent, text.geom.x, text.geom.y);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue