1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #2124 from yurydelendik/fallback-font

Provides right fallback fonts for text layer
This commit is contained in:
Brendan Dahl 2012-09-17 10:06:42 -07:00
commit 8dc49a3c9b
5 changed files with 31 additions and 15 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);
}