Font file not found | Community
Skip to main content
Level 2
March 5, 2019
Solved

Font file not found

  • March 5, 2019
  • 3 replies
  • 2141 views

Hello,

I'm trying to apply custom fonts to my component.

My ttf file location : /apps/<project Name>/fonts/fontFile.ttf

And  Error is :

http://localhost:4502/etc.clientlibs<ProjetName>/clientlibs/clientlib-site/components/teaserpromo/styles/Pacifico.ttf net::ERR_ABORTED 404 (Not Found)

So I'm not getting actual path for font file.

Correct me if i'm wrong.

Thanks for help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by purvesh47

I put font file in clientlib -  resource folder.

It worked.

Thank you.

3 replies

Gaurav-Behl
Level 10
March 5, 2019

check We-retail/WKND project for how/where fonts are stored.

Move fonts under clientlibs so that you don't require a 'proxy' and simply use relative path to fonts folder in your less file.

change

/apps/<project Name>/fonts/fontFile.ttf  to /apps/<project Name>clientlibs/...../fonts/fontFile.ttf 

check  - Custom Fonts in AEM Sites

purvesh47AuthorAccepted solution
Level 2
March 6, 2019

I put font file in clientlib -  resource folder.

It worked.

Thank you.

November 5, 2023

I moved the font file into the clientlib's resource folder, and now it's functioning perfectly.

Appreciate the assistance!

 

DGME Login Employee