For non-embedded fonts, don't generate the fallback several times

This commit is contained in:
Calixte Denizet 2023-05-15 20:02:45 +02:00
parent 107874fcd4
commit 4e8dd54e8e

View File

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