Adding a TrueType Font

To add a new TrueType font adhere to the following steps:

  • Add a .ttf file to a location accessible to Expere. Expere uses the Java classloader to locate the font resource, so anywhere in the EAR is acceptable. The best place would be under the resources/fonts directory in the EAR.
  • Update the fonts.xml configuration file. Add a new font element to the fonts section with appropriate values for the following attributes:
    • Name
    • Resource
    • Style
    • Weight
    • Embed

Upon completing these two steps the new font may be used in both dynamic and static documents.