1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Turn on TrueType decoder even if the sanitizer prevent them to load at the moment

This commit is contained in:
Vivien Nicolas 2011-06-12 03:10:54 +02:00
parent 828367a1b4
commit 632fcfed18
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ var Base64Encoder = {
var str = [];
var count = aData.length;
for (var i = 0; i < count; i++)
str.push(aData.getChar ? aData.getChar : String.fromCharCode(aData[i]));
str.push(aData.getChar ? aData.getChar() : String.fromCharCode(aData[i]));
return window.btoa(str.join(""));
}
@ -71,7 +71,7 @@ var TrueTypeFont = function(aFontName, aFontFile) {
return;
_Fonts[aFontName] = true;
var debug = false;
var debug = true;
function dump(aMsg) {
if (debug)
log(aMsg);