1
0
Fork 0
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:
Vivien Nicolas 2011-06-22 04:41:31 +02:00
parent 11a1ebaada
commit fdfd03b671
2 changed files with 46 additions and 17 deletions

4
pdf.js
View file

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