Get rid of the TrueType class, adapt the code to conventions and new code

This commit is contained in:
Vivien Nicolas 2011-06-21 06:49:59 +02:00
parent 083256634c
commit ff6aaa02ee
2 changed files with 647 additions and 869 deletions

1513
fonts.js

File diff suppressed because it is too large Load Diff

3
pdf.js
View File

@ -80,6 +80,7 @@ var Stream = (function() {
getBytes: function(length) {
var bytes = this.bytes;
var pos = this.pos;
var end = pos + length;
var strEnd = this.end;
if (!end || end > strEnd)
@ -2198,7 +2199,7 @@ var CanvasGraphics = (function() {
var tokens = [];
var token = "";
var buffer = cmapObj.ensureBuffer();
var buffer = cmapObj.ensureBuffer ? cmapObj.ensureBuffer() : cmapObj;
var cmap = cmapObj.getBytes(buffer.byteLength);
for (var i =0; i < cmap.length; i++) {
var byte = cmap[i];