john-okeefe
9ca8e2aa44
fix(reader): use blob URLs for fonts to bypass sandboxed iframe restrictions
...
The paginator renders inside a sandboxed iframe that blocks @font-face
URL fetches. Fonts were never loading — all font-family rules fell back
to the generic 'serif' system font, making every reading font identical.
Fix: fetch font files on the parent page, create blob: URLs via
URL.createObjectURL(), and use those blob URLs in the @font-face rules
injected into the iframe via setStyles(). Blob URLs are always
same-origin with the creating document, so the sandboxed iframe can
access them with allow-same-origin.
Also added Playwrite NZ Guides as a test font for verifying font
switching works.
2026-04-19 21:36:19 -04:00
..
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-04-13 09:23:39 -04:00
2026-04-12 20:43:57 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-12 09:04:26 -04:00
2026-03-11 16:41:45 -04:00
2026-03-28 23:54:26 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-28 23:54:26 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-12 15:44:46 -04:00
2026-03-12 15:44:15 -04:00
2026-03-28 23:54:39 -04:00
2026-03-28 23:54:39 -04:00
2026-04-06 16:02:54 -04:00
2026-04-04 18:17:06 -04:00
2026-03-27 15:52:02 -04:00
2026-03-27 15:52:02 -04:00
2026-03-28 20:35:40 -04:00
2026-03-28 20:35:40 -04:00
2026-03-12 09:04:26 -04:00
2026-03-09 20:11:31 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-28 23:54:42 -04:00
2026-03-28 23:54:42 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-28 23:54:42 -04:00
2026-03-28 23:54:42 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-12 09:04:26 -04:00
2026-02-20 13:25:35 -05:00
2026-03-28 00:46:10 -04:00
2026-03-28 00:46:10 -04:00
2026-04-06 16:02:45 -04:00
2026-04-04 18:17:06 -04:00
2026-04-06 16:02:45 -04:00
2026-04-04 18:17:06 -04:00
2026-04-06 16:02:45 -04:00
2026-04-04 18:17:06 -04:00
2026-03-12 09:04:26 -04:00
2026-03-08 21:36:02 -04:00
2026-03-12 09:04:26 -04:00
2026-03-08 21:36:02 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-28 23:54:42 -04:00
2026-03-28 23:54:42 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-04-19 21:36:19 -04:00
2026-04-19 21:36:19 -04:00
2026-04-06 16:02:45 -04:00
2026-04-04 18:17:06 -04:00
2026-03-28 21:21:03 -04:00
2026-03-28 21:21:03 -04:00
2026-03-11 11:01:43 -04:00
2026-03-08 21:36:02 -04:00
2026-04-19 14:27:56 -04:00
2026-03-13 22:25:12 -04:00
2026-03-13 22:25:12 -04:00
2026-03-31 17:09:25 -04:00