Files
hyperframes/packages
Miguel Ángel e1191edba6 fix(producer): anchor local-font embedding to its url() occurrence (#3405)
The embed step rewrote the compiled document with
result.replaceAll(localPath, dataUri) — a bare substring replace with no
surrounding syntax. That also rewrites the path anywhere else it appears,
including inside a LONGER url whose tail happens to match, producing a
corrupted value like url("file:///abs/data:font/woff2;base64,...").

Any two paths where one is a suffix of the other collide the same way;
img/logo.ttf and assets/img/logo.ttf are enough. Every sibling rewrite in
this file already anchors on url(...), so this one was the outlier.

Also add file: to LOCAL_FONTFACE_URL_RE's exclusion list. Without it an
absolute file:// src was classified as a project-relative path and
resolved to <projectDir>/file:/abs/..., and the failed read was swallowed
by an empty catch. That catch now logs, since a silently skipped font
means the composition renders in a fallback typeface with nothing saying
why.

Closes #3369
2026-08-21 18:58:21 -04:00
..
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00
2026-08-21 15:21:20 -04:00