From e8e79029b1a9f12d46730bc82fa8329f9901239a Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 28 Nov 2015 21:33:07 +0100 Subject: [PATCH] Replace `font.bindDOM()` with `font.createFontFaceRule()` in the `FontLoader` for MOZCENTRAL specific code (PR 6571 follow-up) This is a follow-up to PR 6571, and fixes font loading in the `MOZCENTRAL` version. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1228603#c2. --- src/display/font_loader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/display/font_loader.js b/src/display/font_loader.js index 73f902fba..2c917b2a0 100644 --- a/src/display/font_loader.js +++ b/src/display/font_loader.js @@ -280,7 +280,10 @@ FontLoader.prototype = { // } // // font.attached = true; -// font.bindDOM() +// var rule = font.createFontFaceRule(); +// if (rule) { +// this.insertRule(rule); +// } // } // // setTimeout(callback);