From 9841bc3e8e629a85cb7677416548f14c7f4e4c41 Mon Sep 17 00:00:00 2001 From: benbro Date: Fri, 16 Nov 2012 22:01:33 +0200 Subject: [PATCH] Workaround for Private Use Area characters in Chrome on Windows --- src/fonts.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fonts.js b/src/fonts.js index 04fcc5dca..cec92f390 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -6690,3 +6690,11 @@ var CFFCompiler = (function CFFCompilerClosure() { return CFFCompiler; })(); +// Workaround for Private Use Area characters in Chrome on Windows +// http://code.google.com/p/chromium/issues/detail?id=122465 +// https://github.com/mozilla/pdf.js/issues/1689 +(function checkChromeWindows() { + if (/Windows.*Chrome/.test(navigator.userAgent)) { + SYMBOLIC_FONT_GLYPH_OFFSET = 0xF100; + } +})();