Commit 77596be
Fix PDF ligature rendering - replace Unicode ligatures with ASCII
jsPDF's standard Times font doesn't support Unicode ligature characters
(fi, fl, ff, ffi, ffl). These rendered as "û" with extra spacing, breaking
words like "official" → "oû cial" and "conflict" → "conû ict".
Added replaceLigatures() function to convert ligatures to their
component letters (fi, fl, ff, etc.) before adding text to the PDF.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 07106f2 commit 77596be
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
516 | 529 | | |
517 | 530 | | |
518 | 531 | | |
| |||
579 | 592 | | |
580 | 593 | | |
581 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
582 | 598 | | |
583 | 599 | | |
584 | 600 | | |
| |||
0 commit comments