feat(reader): increase font file size limit to 50MB for CJK fonts

Increase MAX_FONT_FILE_SIZE to 50MB to support large CJK and non-alphabetic fonts. Implement a lightweight binary font metadata parser to replace opentype.js buffer parsing, and update reader custom font composables to lazily manage blob URLs per font family.

Closes #793
This commit is contained in:
neon
2026-07-31 23:37:32 +00:00
parent d26f6999b4
commit 02debbe543
12 changed files with 13222 additions and 6766 deletions
-2
View File
@@ -88,7 +88,6 @@
"nestjs-pino": "^4.6.1",
"node-unrar-js": "^2.0.2",
"nodemailer": "^9.0.3",
"opentype.js": "^2.0.0",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"pdf-lib": "^1.17.1",
@@ -116,7 +115,6 @@
"@types/express": "^5.0.6",
"@types/node": "^26.1.1",
"@types/nodemailer": "^8.0.1",
"@types/opentype.js": "^1.3.10",
"@types/passport-jwt": "^4.0.1",
"@types/pg": "^8.20.0",
"@types/supertest": "^7.2.1",