From 4e8dd54e8e74495af41e862fd01fdd12dae93398 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Mon, 15 May 2023 20:02:45 +0200 Subject: [PATCH] For non-embedded fonts, don't generate the fallback several times --- src/core/fonts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/fonts.js b/src/core/fonts.js index 5fbacdba3..4ca81ea81 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -1001,6 +1001,8 @@ class Font { } if (this.systemFontInfo?.guessFallback) { + // Once the fallback name is guessed, we don't want to guess it again. + this.systemFontInfo.guessFallback = false; this.systemFontInfo.css += `,${this.fallbackName}`; }