Font file not found | Adobe Higher Education
Skip to main content
Level 2
March 5, 2019
解決済み

Font file not found

  • March 5, 2019
  • 3 の返信
  • 2141 ビュー

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.

このトピックへの返信は締め切られました。
ベストアンサー purvesh47

I put font file in clientlib -  resource folder.

It worked.

Thank you.

3 の返信

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

purvesh47作成者回答
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