I would like to call paid fonts via pub folder. I create the specific font folder in pub i.e


and linked it my custom.css file font family is not working.

1 Answer 1


You are doing in a wrong way, As per magento standards, do not upload any files directly to the pub/ folder.

if you want to add font family upload the File under


in your custom theme or Module View folder. To call the font face, create/modify custom.css in following path,


  • I placed it in my default theme but it's not working, that's why I'm trying different way to use the fonts.
    – Lucky
    Jun 27, 2019 at 11:06
  • old post but this approach by Magento really irks me. Every time you deploy static files, visitors are made to download a new copy of the exact same font. It's wasteful! Font files don't change the way css do. They should be OUTSIDE the versioned tree.
    – iphigenie
    Apr 7 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.