Fix Arabic text rendering in generated PDFs

Add Arabic text shaping functionality to convert base characters to their contextual presentation forms before bidi reordering and PDF rendering. Includes a new regression test to verify correct shaping by asserting the presence of presentation form codepoints in the PDF's embedded ToUnicode CMap.
This commit is contained in:
Riyadh
2026-05-03 15:26:38 +00:00
parent 19df7e3845
commit 4018373bb0
4 changed files with 132 additions and 10 deletions
+1
View File
@@ -16,6 +16,7 @@
"@swc/helpers": "^0.5.21",
"@workspace/api-zod": "workspace:*",
"@workspace/db": "workspace:*",
"arabic-persian-reshaper": "1.0.1",
"bcryptjs": "^3.0.3",
"bidi-js": "^1.0.3",
"connect-pg-simple": "^10.0.0",