From de2e0478c602fbf4caa7ddd1885d33e13b437ac1 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 21 Sep 2016 13:58:14 +0100 Subject: [PATCH] disable pdfjs fontface on Microsoft Edge --- .../web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee index d0f2f8a3ae..93fec247ba 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee @@ -12,7 +12,9 @@ define [ INDICATOR_DELAY2: 250 # time until the indicator starts animating constructor: (@url, @options) -> - # PDFJS.disableFontFace = true # avoids repaints, uses worker more + if navigator.userAgent?.indexOf("Edge/") >= 0 + # Microsoft Edge does not work well with font-face (Sept 2016) + PDFJS.disableFontFace = true if @options.disableAutoFetch PDFJS.disableAutoFetch = true # prevent loading whole file # PDFJS.disableStream