1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Warn when pdf.js can't load an OS font

This commit is contained in:
Calixte Denizet 2023-05-16 14:58:38 +02:00
parent 95ab2b8b17
commit 385f275ad9
3 changed files with 18 additions and 11 deletions

View file

@ -451,6 +451,7 @@ function getFontSubstitution(
css: loadedName,
guessFallback: true,
loadedName,
baseFontName,
src: `local(${baseFontName})`,
style,
};
@ -470,6 +471,7 @@ function getFontSubstitution(
css: `${loadedName},${ultimate}`,
guessFallback: false,
loadedName,
baseFontName,
src: src.join(","),
style,
};