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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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