Add a custom font to my theme via the assets repository

Hello,
I am trying to add a custom font to my theme but it doesn’t work… I certainly did something wrong but I can’t find where.

  • I am developing my own theme that I installed via github.
  • In the assets repository, I uploaded my fonts that are not Google fonts :

  • In the about.json, I imported the files :

Capture d’écran 2023-04-06 à 11.09.51

  • In my scss repository, I created my font families :

Capture d’écran 2023-04-06 à 10.58.07

I tried to add : format(‘woff2’) but it doesn’t work neither.

  • And then :

Capture d’écran 2023-04-06 à 11.07.22

Well, it does not work… Any idea ?

6 posts - 4 participants

Read full topic


This is a companion discussion topic for the original entry at https://meta.discourse.org/t/add-a-custom-font-to-my-theme-via-the-assets-repository/260784