Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Custom Font to use in AEM Forms Themes editor

Avatar

Level 4

AEM Version: 6.5.14

I am trying to use custom font in AEM Forms.
The font is included in AEM clientlibs but won't apply to forms in pages.
I tried to apply font through the theme editor.
For this I followed the Answer of this Question and also followed this blog.
I checked the logs of the com.day.cq.dam.handler.gibson.fontmanager.impl.FontManagerServiceImpl class and found that my font is added to AEM as I can see its name in added fonts list but it didn't appear while selecting font-family in theme editor
Tried restarting but didn't work.
I also added my custom font name in the "Adaptive Form and Interactive Communication Web Channel Theme Configuration.name" service which made my custom font name appear in the theme editor but applying the theme results the style to be "New Times Roman".

 

More Details:

The custom font:

Vinit_Pillai_0-1677767164726.png

 

com.day.cq.dam.handler.gibson.fontmanager.impl.FontManagerServiceImpl log:
02.03.2023 19:49:34.003 *DEBUG* [FelixStartLevel] com.day.cq.dam.handler.gibson.fontmanager.impl.FontManagerServiceImpl List of fonts of type Adobe Server added to font set:
-- Adobe Arabic
-- Adobe Fan Heiti Std B
-- Adobe Gothic Std B
-- Adobe Hebrew
-- Adobe Heiti Std
-- Adobe Myungjo Std M
-- Adobe Pi Std
-- Adobe Thai
-- Adobe ?? Std
-- Adobe ?? Std
-- Always Smile

 

Adaptive Form and Interactive Communication Web Channel Theme Configuration.name 

config:

Vinit_Pillai_1-1677767311224.png

Theme Editor: the style is added but appears to be Times new roman.

Vinit_Pillai_0-1677767524454.png

 

How the font is suppose to look:

Vinit_Pillai_1-1677767582969.png

 

 

Also noted a weird behavior:

if I add font family: always Smile; in advanced tab the the style becomes Times New Roman but I add any string like font-family: test font;" then the style changes to Arial which is the default style. 

 

Am I missing something?

 

Let me know if any other details are need.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

7 Replies

Avatar

Employee Advisor

@Vinit_Pillai 

I don't see any reason why the fonts won't be picked once you have added the same to "CQ-DAM-Handler-Gibson Font Manager Service". Did you make sure the font is accessible and user rights are adequate? Try changing the location on the font and updating the Gibson config.

I assume,  "Adaptive Form and Interactive Communication Web Channel Theme Configuration.name" service configs were correct but seems the fonts were inaccessible thus you got the default font instead in the form.

Avatar

Level 4

Tried the whole process in a vanilla instance of 6.5.14.
Still unable to get it

 

Avatar

Level 4

I have added more details and tried write every step I performed can you take a look. @Pulkit_Jain_ 

Avatar

Employee Advisor

@Vinit_Pillai if the font is on the server just mention it in the advanced option it should pick it while rendering.

 

Mayank_Gandhi_0-1677757204042.png

 

Avatar

Level 4

Tried this still not working.
AEM doesn't recognize my custom font.
Even though I can clearly see in the logs it has identified my custom font