foliate-js could not locate cmaps and standard_fonts at runtime because no explicit paths were provided to the PDF.js config. This caused rendering failures for PDFs using CJK fonts or standard PDF fonts. Changes: - Pass cMapUrl and standardFontDataUrl to view.open() in reader.ts - Pin foliate-js fork to commit 74c317d in package.json for reproducibility - Update build:ts script to copy cmaps/ and standard_fonts/ to web/static/vendor/pdfjs/ during build
982 B
982 B