CP requests a missing font: intervariable-italic.woff2 404s (file is named intervariable-Italic.woff2)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css, vite
- Domain
- build-system, frontend
Research direction
Start in resources/css/core/fonts.css, where the italic @font-face src points to intervariable-italic.woff2, then compare it with the actual file resources/fonts/inter/intervariable-Italic.woff2. Either rename the file or change the CSS reference so the names match exactly. Done when the Vite release build no longer prints the 'didn't resolve at build time' warning for the italic font and the CP requests the italic font and gets a 200 instead of a 404.
Written by the indexing model from the issue text.
Description
Bug description
Every control panel page requests /vendor/statamic/cp/build/fonts/inter/intervariable-italic.woff2?v=4.1, which answers 404.
resources/css/core/fonts.css references the italic face in lowercase:
src: url("../../fonts/inter/intervariable-italic.woff2?v=4.1") format("woff2");
but the file is resources/fonts/inter/intervariable-Italic.woff2, with a capital I. The upright face (intervariable.woff2) matches and is bundled (build/assets/intervariable-DiVDrmQJ.woff2). The italic one is not: the built CSS keeps the unresolved relative URL ../fonts/inter/intervariable-italic.woff2, and no build/fonts/ folder is shipped. The CP's italic text falls back to a synthesised slant.
The release build shows it: Vite can't find the file on the case-sensitive Ubuntu runner and leaves the URL unresolved. From the v6.35.1 release run (job log, "Build release assets"), once for dist and once for dist-dev:
../fonts/inter/intervariable-italic.woff2?v=4.1 referenced in ../fonts/inter/intervariable-italic.woff2?v=4.1 didn't resolve at build time, it will remain unchanged to be resolved at runtime
The v6.30.0 release run has the same warnings, so this has been broken since at least 6.30.
Fix: rename the font to lowercase, or point the CSS at intervariable-Italic.woff2. Happy to send a PR.
How to reproduce
- Install Statamic 6.35.1 and open any CP page.
- DevTools → Network:
intervariable-italic.woff2?v=4.1answers 404. resources/dist/build/assets/app-*.csscontainsurl(../fonts/inter/intervariable-italic.woff2?v=4.1).
Logs
GET https://example.test/vendor/statamic/cp/build/fonts/inter/intervariable-italic.woff2?v=4.1 net::ERR_ABORTED 404 (Not Found)
Environment
Statamic 6.35.1 PRO
Laravel 13.35.0
PHP 8.5.10
Installation
Existing Laravel app
- Dominant language
- PHP
- Stars
- 4.9k
- Forks
- 647
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 103
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from statamic/cms
-
preferences
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
assets
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
statamic/cms#15567 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
antlers
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Do not throw `WordPress.Security.EscapeOutput.OutputNotEscaped` on `apply_shortcodes()`Possibly taken @tbradsha claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
fe: spell out "Auto increment" in the table editor, "AI" reads as artificial intelligence todayOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
landsman/adminer-desktop#120 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
components-web-app/docs#227 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100