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:
parent
95ab2b8b17
commit
385f275ad9
3 changed files with 18 additions and 11 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue