Andrey Antukh 6999b7e501 🐛 Fix font upload crash and preserve variant metadata
opentype.js 2.0.0 returns no fontSubfamily name for fonts whose
Macintosh name table only holds custom records. That made
parse-font-weight/parse-font-style call re-seq on nil and crash the
upload.

Treat a nil or blank variant as no match in app.common.media, and
add resolve-font-metadata to app.main.data.fonts so the parsed branch
falls back to the filename-derived family, weight and style. The
woff2 branch now shares the same helper, so metadata is preserved
instead of collapsing every face to weight 400.

Closes #10436

AI-assisted-by: deepseek-v4.1-flash
2026-09-25 17:44:32 +00:00
..
2026-09-22 10:22:31 +02:00
2026-09-25 11:11:44 +02:00
2026-09-22 10:22:31 +02:00
2026-03-11 15:24:40 +01:00