java.lang.Object
net.i2p.router.web.GraphRenderer.FontConfig
Enclosing class:
GraphRenderer

private static final class GraphRenderer.FontConfigextends Object
Font family configuration for a specific language. Ordered by preference: first available font in the list is used.
  • Field Details

    • titleCandidates

      final List<String> titleCandidates
      Font names tried for titles, in order.
    • monoCandidates

      final List<String> monoCandidates
      Font names tried for unit labels, in order.
    • fallbackTitle

      final String fallbackTitle
      Font used for titles when no candidate exists.
    • fallbackMono

      final String fallbackMono
      Font used for unit labels when no candidate exists.
  • Constructor Details

    • FontConfig

      FontConfig(List<String> titleCandidates, List<String> monoCandidates, String fallbackTitle, String fallbackMono)
      Holds the font choices for the graphs.
      Parameters:
      titleCandidates - the fonts tried for titles
      monoCandidates - the fonts tried for mono text
      fallbackTitle - the title font to fall back to
      fallbackMono - the mono font to fall back to