Fonts arent working

I downloaded a .ttf using wget and put it in a folder , but it doesnt appear in the editor nor does pointing Canvas.registerFont() to that folder work , it says the folder doesn’t exist but when i run ls in the console its there.

Things i’ve tried:

  • refresh in the console
  • reloading the web page

My project:!/soulbot


1 Like

Hey @reytgsxg34643 – is the code the imports the font on the client or on the serverside? My first guess would be that the font isn’t being provided to the client, and therefore isn’t available when the code actually runs to import it. If that’s the case, I think you could either provide it to the client via express, or just move the font folder into the public directory – do you think that could be the issue?

1 Like

When you pass the string to look for the font are you using /app/fonts/.. ?

1 Like