Commit a429fb8
committed
Fix blurry PDF text on mobile Safari by accounting for devicePixelRatio
Canvas was rendered at CSS pixel dimensions, causing blurry upscaling on
high-DPI screens (mobile Safari typically has devicePixelRatio of 2-3).
Now renders at native device resolution and uses CSS to scale the canvas
element back to logical size.
https://claude.ai/code/session_01YcR4QgziQReqarBy3HuxcH1 parent a82c351 commit a429fb8
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
| |||
0 commit comments