Browse Source

Function replaceCMapTable() was not setting the font pos pointer to the correct place to read the cmap. Caused Mac PDFs to fail because the cmap was not correctly rewritten.

Adil Allawi 14 years ago
parent
commit
4e242880b6
  1. 1
      fonts.js

1
fonts.js

@ -425,6 +425,7 @@ var Font = (function () {
}; };
function replaceCMapTable(cmap, font, properties) { function replaceCMapTable(cmap, font, properties) {
font.pos = cmap.length;
var version = FontsUtils.bytesToInteger(font.getBytes(2)); var version = FontsUtils.bytesToInteger(font.getBytes(2));
var numTables = FontsUtils.bytesToInteger(font.getBytes(2)); var numTables = FontsUtils.bytesToInteger(font.getBytes(2));

Loading…
Cancel
Save