forked from akai/readest
perf(pdf): pre-render next page for PDFs (#2984)
This should close #1911 and #13.
This commit is contained in:
@@ -188,7 +188,9 @@ const FoliateViewer: React.FC<{
|
||||
setViewSettings(bookKey, { ...viewSettings });
|
||||
}
|
||||
|
||||
mountAdditionalFonts(detail.doc, isCJKLang(bookData.book?.primaryLanguage));
|
||||
if (!bookData?.isFixedLayout) {
|
||||
mountAdditionalFonts(detail.doc, isCJKLang(bookData.book?.primaryLanguage));
|
||||
}
|
||||
|
||||
getLoadedFonts().forEach((font) => {
|
||||
mountCustomFont(detail.doc, font);
|
||||
|
||||
Reference in New Issue
Block a user