How to add fonts in Sage 10?

Hello !

I want to add fonts in Sage 10 but I have an error when using like this :

  src: url('../fonts/Barlow-Regular.ttf') format('truetype');

Error when compiling :

Module not found: Error: Can't resolve './fonts/Barlow-ExtraBold.ttf' in '[secure]/resources/styles'
   @ ./resources/styles/app.css

Do you know where the problem could come from?

Thank you very much.

See Sage: url() in @font-face declaration doesn't work · Issue #822 · roots/bud · GitHub

This should be fixed in the upcoming release, but there’s a workaround in that issue in the meantime

/cc @kellymears

This topic was automatically closed after 42 days. New replies are no longer allowed.