# Correct way to link to custom font?

**URL:** <https://forum.shopware.com/t/correct-way-to-link-to-custom-font/95829>\
**Category:** Shopware 6 (English)\
**Created:** [17. August 2022 um 13:19 UTC](https://forum.shopware.com/t/correct-way-to-link-to-custom-font/95829 "2022-08-17T13:19:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [17. August 2022 um 13:19 UTC](https://forum.shopware.com/t/correct-way-to-link-to-custom-font/95829/1 "2022-08-17T13:19:04Z")

</div>

Hey  
I have downloaded a font (PublicSans) and added the font files to „myCustomTheme“ assets folder.  
Have run bin/console assets:install (the files are copied correctly to the public/bundles folder.  
Linking to the fonts in the base.scss like what the guides says:

```auto
@font-face {
		 font-family: "PublicSans-Bold";
		 font style: normal;
		 font weight: 700;
		 font display: swap;
		 src: url("/bundles/font/PublicSans-Bold.woff2") format("woff2");
}

```

But when checking the page using the browser inspector gives a 404 error for the font. So, looking at the default file „\_inter-fontface.scss“ the src link is like:

`src: url('#{$app-css-relative-asset-path}/PublicSans-Bold.woff2') format('woff2');`

Doing that, and the font is working. So, what is the correct way to link in the stylesheet?
