Web design
Debug a missing web font
Distinguish loading failure from an incorrect CSS family or style.
1. Check the request
Reload with developer tools open and inspect the requested URL, HTTP status and size.
2. Inspect the response
Ensure the URL returns a font, not an HTML error page. For cross-origin requests verify the configured CORS policy.
3. Match declarations
Check font-family, font-style and weight in both the rule and element. A mismatch can trigger fallback or synthesis.
4. Verify the rendered face
Inspect the browser's rendered-font details with a known mapped character and test on a slow network.
Diagnose a 200 response with the wrong content
When the font request reports 200 but the response is HTML, check for a mistyped path or fallback routing before changing the CSS. If the file is correct, inspect Content-Type, the exact weight/style declaration and the rendered font for a known mapped character. For cross-origin delivery, inspect CORS separately. Retest with an empty cache.
Common pitfall
A successful HTTP request does not prove that the browser accepted or used the font. Avoid solving a path problem by disabling security checks or forcing synthetic bold.