diff --git a/src/fonts.js b/src/fonts.js index e86be2d20..22d2a1cd9 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -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'];