Ensure we don't modify the original PDF data when sanitizing TrueType

This commit is contained in:
Yury Delendik 2013-05-16 08:56:22 -05:00
parent 869b8788ab
commit 9b4ca246e4

View File

@ -3870,6 +3870,9 @@ var Font = (function FontClosure() {
}
}
// The following steps modify the original font data, making copy
font = new Stream(new Uint8Array(font.getBytes()));
// Check that required tables are present
var requiredTables = ['OS/2', 'cmap', 'head', 'hhea',
'hmtx', 'maxp', 'name', 'post'];