Class CustomFontLoader

java.lang.Object
org.mapfish.print.config.CustomFontLoader

public final class CustomFontLoader extends Object
Used to load custom fonts.

To add a custom font, the file `mapfish-spring-custom-fonts.xml` must be overridden.

Warning: the fonts added using this are not available to Jasper Reports. They can only be used in layer styles.

  • Constructor Details

    • CustomFontLoader

      public CustomFontLoader(Set<String> paths)
      Load the custom fonts when the application is started.
      Parameters:
      paths - A list of paths to ttf font files.