Merge pull request #16426 from calixteman/generate_fallback_one_time

For non-embedded fonts, don't generate the fallback several times
This commit is contained in:
calixteman 2023-05-15 21:25:29 +02:00 committed by GitHub
commit 2c0478ecb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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