Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to consume font from an OTF file in AEM ?

Avatar

Level 3

Any help will be appreciated pointing me to ways of consuming fonts from a OTF file.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Please check Accessing remote fonts on Client’s system by @font-face | TO THE NEW Blog

e.g.

@font-face {
   font-family: CustomFont;
   src: url('CustomFont.otf');
}

@font-face {
   font-family: CustomFont2;
   src: url('CustomFont2.otf');
}

Arun Patidar

AEM LinksLinkedIn

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi,

Please check Accessing remote fonts on Client’s system by @font-face | TO THE NEW Blog

e.g.

@font-face {
   font-family: CustomFont;
   src: url('CustomFont.otf');
}

@font-face {
   font-family: CustomFont2;
   src: url('CustomFont2.otf');
}

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 10

Nice response!

Avatar

Level 1

I came across a thread about adding fonts (Adding Fonts for Graphic-Rendering - docs.adobe.com).   Is it necessary to add the new OTF font to the /apps/<your project>/fonts/ directory? Out of curiosity, is there any harm in creating the /fonts/ folder in /etc/designs/<your project>?

Avatar

Community Advisor

HI,

You can create font /etc/designs/<your project> also.

Arun Patidar

AEM LinksLinkedIn