Google Fonts request fails (HTTP 400) for variable fonts in font packs: `[email protected]` exceeds the fonts' axes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- html
- Ambito
- frontend
Direzione di ricerca
Read layouts/_partials/functions/typography.html and the affected font pack definitions. Check how variable fonts are marked and how their Google Fonts URL is assembled; reproduce with the provided curl request. Done when the bundled variable fonts request valid axis ranges and the combined request no longer returns HTTP 400.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
layouts/_partials/functions/typography.html requests every font marked variable: true with [email protected]. Google Fonts returns HTTP 400 when the requested range is outside the font's weight axis, and one invalid family fails the whole combined request, so no web fonts load and sites fall back to system fonts.
Affected bundled packs (tested 2026-10-21):
- developer: Space Grotesk (300–700), Fira Code (300–700)
- academic: Lora, Source Serif 4
- editorial: Playfair Display
- humanist: Nunito, Open Sans
- modern: JetBrains Mono (Inter alone works)
Repro: curl -I "https://fonts.googleapis.com/css2?family=Space+Grotesk:[email protected]&display=swap" gives 400; with [email protected] it gives 200.
Suggested fix: store each variable font's axis range in the font pack (e.g. axes: {heading: "300..700"}) and use it instead of 100..900, or fall back to the static weights list.
Seen on kit [email protected].
- Lingua principale
- HTML
- Stelle
- 9.8k
- Fork
- 2.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HugoBlox/kit
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
proposal stale
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Feature request (docs): add an "Accessibility" page documenting HugoBlox's built-in a11y featuresApertaproposal stale
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
-
`hbx dev` and `hbx build` reject additional Hugo arguments despite documenting `[hugoArgs...]`Apertaneeds triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
needs triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di HugoBlox/kit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
🔊 a11y
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
betagouv/mon-entreprise#4726 ·
I maintainer di solito rispondono entro 9 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Deltares/fews-pi-requests#357 ·
I maintainer di solito rispondono entro 1 giorno
-
bug confirmed js v6
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
nopSolutions/nopCommerce#8440 ·
I maintainer di solito rispondono entro 1 giorno