1
0
Fork 0
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:
Yury Delendik 2012-09-14 10:58:33 -07:00
parent 53c66f8a54
commit ac7b6aeff4
4 changed files with 9 additions and 14 deletions

View file

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