mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
Support Format 6 cmap table, but does not pass the sanitizer yet
This commit is contained in:
parent
11a1ebaada
commit
fdfd03b671
2 changed files with 46 additions and 17 deletions
4
pdf.js
4
pdf.js
|
@ -2193,8 +2193,6 @@ var CanvasGraphics = (function() {
|
|||
} else if (IsStream(cmapObj)) {
|
||||
var encoding = Encodings["WinAnsiEncoding"];
|
||||
var firstChar = xref.fetchIfRef(fontDict.get("FirstChar"));
|
||||
for (var i = firstChar; i < encoding.length; i++)
|
||||
encodingMap[i] = new Name(encoding[i]);
|
||||
|
||||
var tokens = [];
|
||||
var token = "";
|
||||
|
@ -2538,7 +2536,7 @@ var CanvasGraphics = (function() {
|
|||
}
|
||||
|
||||
this.current.fontSize = size;
|
||||
this.ctx.font = this.current.fontSize +'px "' + fontName + '"';
|
||||
this.ctx.font = this.current.fontSize +'px "' + fontName + '", Symbol';
|
||||
},
|
||||
setTextRenderingMode: function(mode) {
|
||||
TODO("text rendering mode");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue