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:
commit
8dc49a3c9b
5 changed files with 31 additions and 15 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