I have tried importing new fonts in aem 6.2 under /etc/designs/myapp/fonts and /apps/myapp/fonts where fonts is sling:folder and then made the font entry GFX font Helper. The fontlist node is created automatically in the fonts folder. But when i try to use the few font in the font-family it shows me no changes. I have even downloaded various fonts from internet and used them but still no changes. I feel that the custom fonts are not working.
Views
Replies
Total Likes
Hi
I would request you to try this documentation :
Link:- https://docs.adobe.com/docs/en/aem/6-2/develop/platform/adding-fonts.html
// Adding Fonts for Graphic-Rendering
Open CRXDE Lite and navigate to your project application folder:
/apps/<your-project>/
Under /apps/<your-project>/ create a new node:
Save all changes.
Copy the font files into this folder; for example, using WebDAV.
Update the OSGi configuration of Day Commons GFX Font Helper. Add the path to your fonts folder; i.e. /apps/<your-project>/fonts.
Return to CRXDE Lite. You should now see a .fontlist node in your folder containing the name of the imported fonts.
These fonts are now ready to be used in the Java API.
Also please have a look at this reference post :-
//How to apply font for only one component?
// How to add a specific font support in AEM
I hope this would help you.
~kautuk
Views
Replies
Total Likes