mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs
This commit is contained in:
commit
582b760a65
4 changed files with 5 additions and 1 deletions
4
fonts.js
Executable file → Normal file
4
fonts.js
Executable file → Normal file
|
@ -1293,6 +1293,10 @@ var Font = (function Font() {
|
|||
window.btoa(data) + ');');
|
||||
var rule = "@font-face { font-family:'" + fontName + "';src:" + url + '}';
|
||||
var styleSheet = document.styleSheets[0];
|
||||
if (!styleSheet) {
|
||||
document.documentElement.firstChild.appendChild( document.createElement('style') );
|
||||
styleSheet = document.styleSheets[0];
|
||||
}
|
||||
styleSheet.insertRule(rule, styleSheet.cssRules.length);
|
||||
|
||||
return rule;
|
||||
|
|
2
pdf.js
2
pdf.js
|
@ -3379,7 +3379,7 @@ var Page = (function() {
|
|||
} catch (e) {
|
||||
exc = e.toString();
|
||||
}
|
||||
continuation(exc);
|
||||
if (continuation) continuation(exc);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
0
web/compatibility.js
Executable file → Normal file
0
web/compatibility.js
Executable file → Normal file
0
web/viewer.css
Executable file → Normal file
0
web/viewer.css
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue