How to load a custom font locally into a symfony project?

I want to load IMG Plex font into a symfony project with webpack encore.

I imported it into my scss file:

@import "../fonts/IBM_Plex_Sans/IBMPlexSans-Regular.ttf";

But nothing changed. Only the cdn worked for me.

And yes I did not forgot to restart yarn encore dev –watch

Hope somebody can help.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *