Adding Fonts for Graphic-Rendering adding-fonts-for-graphic-rendering

CAUTION
AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our technical support periods. Find the supported versions here.

AEM allows you to generate graphics incorporating text dynamically taken from your content.

To do this you can also load and use your own fonts.

Currently all implementations of the Java Platform support TrueType fonts.

  1. Open CRXDE Lite and navigate to your project application folder:

    /apps/<your-project>/

  2. Under /apps/<your-project>/ create a new node:

    • Name: fonts
    • Type: sling:Folder

    Save all changes.

  3. Copy the font files into this folder; for example, using WebDAV.

    note note
    NOTE
    Font files in the repository must have the suffix *.ttf or *.TTF.
  4. Update the OSGi configuration of Day Commons GFX Font Helper. Add the path to your fonts folder; i.e. /apps/<your-project>/fonts.

  5. 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.

For full details of how to use the fonts with the Java API, see the documentation for the Font class of the Java API.

recommendation-more-help
2315f3f5-cb4a-4530-9999-30c8319c520e