mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add a cache to avoid to load several times a local font
On my computer, it takes few tenths of a second to load a local font. Since a font can be used several times in a document, the cache will improve performances.
This commit is contained in:
parent
2d2f7b315e
commit
cfb908c999
6 changed files with 38 additions and 2 deletions
|
@ -130,6 +130,7 @@ describe("annotation", function () {
|
|||
fontCache: new RefSetCache(),
|
||||
builtInCMapCache,
|
||||
standardFontDataCache: new Map(),
|
||||
systemFontCache: new Map(),
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue