Skip to content

Commit d10cf7c

Browse files
committed
Reland commit 442d184 but make it works with uncompressed PDF
1 parent 704559f commit d10cf7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fonts.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ var Font = (function () {
624624
};
625625

626626
function replaceCMapTable(cmap, font, properties) {
627+
font.pos = (font.start ? font.start : 0) + cmap.length;
628+
627629
var version = FontsUtils.bytesToInteger(font.getBytes(2));
628630
var numTables = FontsUtils.bytesToInteger(font.getBytes(2));
629631

0 commit comments

Comments
 (0)