Remove 404 errors for DIN web fonts

Last modified: 2026-03-15 23:49av bruker: erikhag1git (Erik Hagen) ID: 50345854-27d8-4b1c-8f78-a6d036501284 ◍New

designsystem.css contains @font-face declarations that attempt to load DIN web fonts from /fonts/DINWeb.woff... and /fonts/DINWeb-Bold.woff.... These files do not exist in the repo, causing two 404 errors in the browser console on every page.

Impact

Cosmetic only – the site falls back to Helvetica/Arial as defined in custom-head.html, and nothing breaks visually. However, the errors add noise to the console and may obscure real errors.

Two options:

A) Comment out @font-face blocks in designsystem.css Since fonts are already overridden in custom-head.html, the DIN declarations are unnecessary.

B) Add the actual font files Obtain DINWeb.woff/.woff2 and DINWeb-Bold.woff/.woff2 from the Altinn Design System source and place them in themes/hugo-theme-samt-bu/static/fonts/.

Option A is fastest. Option B is correct if DIN font is actually desired.