The patch above seems to work ok for me (only tested on macOS for now). I don't much like its approach of inserting a temporary `<style>` element into the doc, but when I tried to use the CSS Font Loading API instead (`new FontFace(....)`), this didn't seem to be available to whatever context we're in here. (Obviously, I have very little idea what I'm messing with....) Anyhow, I hope this helps indicate a workable way forward!
Bug 1111031 Comment 10 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The patch above seems to work ok for me (only tested on macOS for now). I don't much like its approach of inserting a temporary `<style>` element into the doc, but when I tried to use the CSS Font Loading API instead (`new FontFace(....)`), this didn't seem to be available to whatever context we're in here. (Obviously, I have very little idea what I'm messing with....) Anyhow, I hope this helps indicate a workable way forward! Please feel free to take over the patch if it's useful, or to steal ideas from it and do a better implementation.