1
0
Fork 0
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:
Brendan Dahl 2014-04-09 10:26:09 -07:00
commit a6e5f31ca1
6 changed files with 245 additions and 10 deletions

View file

@ -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;
}