Custom Fonts in AEM Sites

tirthtimaniya

04-03-2019

Hello All,

I have created one maven arche type project in AEM 6.4

but now I am trying to import my custom fonts but it is not visible in my site

This is my folder structure

Screenshot (66).png

and Inside main.less I have import oswal-font.less file

Please, Help me with this

Thank you 🙂

Accepted Solutions (1)

Accepted Solutions (1)

Gaurav-Behl

MVP

04-03-2019

Did you specify correct path in main.less?

check WKND/We-Retail code for reference -

/apps/wknd/clientlibs/clientlib-site/less/wkndicons.less -

     @icon-font-path:          "../resources/";    // 'resource' in your case at parent level

     src: url('@{icon-font-path}@{app-icon-font-name}.eot');

Getting Started with AEM Sites Chapter 3 - Client-Side Libraries and Responsive Grid