1
0
Fork 0
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:
Calixte Denizet 2023-05-10 15:31:07 +02:00
parent 2d2f7b315e
commit cfb908c999
6 changed files with 38 additions and 2 deletions

View file

@ -130,6 +130,7 @@ describe("annotation", function () {
fontCache: new RefSetCache(),
builtInCMapCache,
standardFontDataCache: new Map(),
systemFontCache: new Map(),
});
});