Strategy ONE

Using a custom font in StrategyLibrary

You can use a custom font on documents or dashboards displayed in Strategy Library. To accomplish this requires several steps.

  1. Download the sample plug-in provided for you, then modify the custom font file, as needed, to use another font.
  2. Copy the plug-in to the plugins folder of the Strategy products where you want to apply it to a document or dashboard—Strategy Library.
  3. Restart your web server and Library server.

In this example, you will add a font called Kaushan Script Regular. When you apply it to a visualization, it will look like this:

Customize the plug-in

A sample out-of-the-box plug-in was provided above. This plug-in adds the custom font, Kaushan Regular Script. Use the following steps to modify the plug-in file so an additional custom font is available to documents or dashboards in Library.

  1. Download the plug-in and unzip it.

  2. Replace the font file with a new file:

    1. Replace the font file in /CustomLibraryFont/style/fonts with your new file.

    2. Update global.css under /CustomLibraryFont/style/ with the following:

      scr /New font file path/
      font-family /Font Name/

      Not the file name.

    3. Update fontNamesPicker.xml under /CustomLibraryFont/WEB-INF/xml/config with the following:

      style > font-family /Font Name/

      Not the file name.

      Value > value /Font Name/

      Not the file name.

  3. Deploy the new plug-in to the plugins folder in the Strategy Library or Web installation directory of the location you want to apply the custom font to.

  4. Restart your Web and Library server.

Now, if you open Strategy Library and view a dashboard or document where the custom font has been applied, the custom font is visible. To confirm:

  1. Open a dashboard in Strategy Library or Web.
  2. Right-click on a part of a visualization (column header, metric, attribute, etc.) in the dashboard, choose Format, and expand the drop-down list of fonts. The kaushan_script font should appear at the bottom of the list.
  3. Select Kaushan Script Regular, and the part of the visualization that you selected should now be displayed using the custom font. Save your changes.
  4. Open the same dashboard in Strategy Library, and you should see the custom fonts. In this example, the custom font has been applied to all parts of the visualization.