Files
web/apps/scandic-web/fonts/font-preloading.tsx
Joakim Jäderberg 48324ef935 Merged in feature/copy-static-files-via-build-scripts (pull request #2798)
SW-3467 Copy static files via build scripts

* add file copy script and add all fonts to design-system

* add file copy script and add all fonts to design-system

* add file copy script and add all fonts to design-system

* remove fonts that will be copied via build scripts

* wip

* update paths to shared files

* update material-symbol script

* merge

* fix missing shared segment for path in fonts.css


Approved-by: Linus Flood
2025-09-16 10:59:33 +00:00

35 lines
790 B
TypeScript

export function FontPreload() {
return (
<>
<link
rel="preload"
href="/_static/shared/fonts/biro-script-plus/regular.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="/_static/shared/fonts/brandon-text/bold.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="/_static/shared/fonts/fira-sans/medium.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="/_static/shared/fonts/fira-sans/regular.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
</>
)
}