---
title: "Comment by Victor Eke  on \"A Practical Guide to Self-Hosting Web Fonts\" | Hashnode"
description: "Thanks for writing this amazing article Tristan Guest . I do have a few questions though. How will one specify different weights for a font downloaded from goog"
url: "https://hashnode.com/posts/a-practical-guide-to-self-hosting-web-fonts/62799979076291997b765e24/comment/627e84a701c71be2bfdff8c9"
---

[Discussion](https://hashnode.com/posts/a-practical-guide-to-self-hosting-web-fonts/62799979076291997b765e24)

Comment [A Practical Guide to Self-Hosting Web Fonts](https://hashnode.com/posts/a-practical-guide-to-self-hosting-web-fonts/62799979076291997b765e24)

[Victor Eke](https://hashnode.com/@Eke)

[May 13, 2022](https://hashnode.com/posts/a-practical-guide-to-self-hosting-web-fonts/62799979076291997b765e24/comment/627e84a701c71be2bfdff8c9)

Thanks for writing this amazing article [Tristan Guest](https://hashnode.com/@tbguest). I do have a few questions though. How will one specify different weights for a font downloaded from googlefonts?

Let's say I download the Inter font with different weights: 300, 400, and 600, and add them to a `font` folder. How will these weights be included in the `@font-face` property?

[Tristan Guest](https://hashnode.com/@tbguest)

[May 14, 2022](https://hashnode.com/posts/a-practical-guide-to-self-hosting-web-fonts/62799979076291997b765e24/comment/627e84a701c71be2bfdff8c9#reply-627fa5a00094f2f13f5142fc)

Hi [Victor Eke](https://hashnode.com/@Eke) , I'd achieve this with multiple `@font-face` declarations. `font-weight` does accept two arguments (specifying a range), but that only applies if the `src` field URL points to a variable font file.

As far as I know, there's no way around needing a separate `@font-face` declaration for each hosted font file. Something like:

```
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: local(""), url("/fonts/inter-v11-latin-regular.woff2") format("woff2"),
    url("/fonts/inter-v11-latin-regular.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: local(""), url("/fonts/inter-v11-latin-900.woff2") format("woff2"),
    url("/fonts/inter-v11-latin-900.woff") format("woff");
}
```

[Victor Eke](https://hashnode.com/@Eke)

[May 15, 2022](https://hashnode.com/posts/a-practical-guide-to-self-hosting-web-fonts/62799979076291997b765e24/comment/627e84a701c71be2bfdff8c9#reply-628115a6bc9305ec393653a5)

Wow, I never knew this. Thank you so much. 🎉 [Tristan Guest](https://hashnode.com/@tbguest)
