mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #4423 from chriskr/font-aliases
Treat fonts with the same font descriptor and encoding as aliases
This commit is contained in:
commit
a6e5f31ca1
6 changed files with 245 additions and 10 deletions
|
@ -2328,6 +2328,13 @@ var Font = (function FontClosure() {
|
|||
this.loading = true;
|
||||
}
|
||||
|
||||
Font.getFontID = (function () {
|
||||
var ID = 1;
|
||||
return function Font_getFontID() {
|
||||
return String(ID++);
|
||||
};
|
||||
})();
|
||||
|
||||
function int16(b0, b1) {
|
||||
return (b0 << 8) + b1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue