fix: replace PDF with HTML report (fontkit unavailable)

This commit is contained in:
Developer
2026-05-21 16:30:36 +08:00
parent 0b0da09d4b
commit a83de861dd
4 changed files with 41 additions and 66 deletions
@@ -3,9 +3,9 @@ import * as path from 'path';
import { PDFDocument, rgb, StandardFonts, PageSizes } from 'pdf-lib';
const FONT_SEARCH_PATHS = [
'C:/Windows/Fonts/NotoSansSC-VF.ttf',
'C:/Windows/Fonts/NotoSansJP-VF.ttf',
path.join(__dirname, '..', '..', '..', 'assets', 'fonts', 'NotoSansSC-VF.ttf'),
'C:/Windows/Fonts/msyh.ttf',
'C:/Windows/Fonts/simsun.ttf',
'/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc',
];