Reporting

Adding a font using integrated PDF generation (Splunk 5.0+)

jlaw
Splunk Employee
Splunk Employee

I'm using integrated PDF generation on Splunk 5.0 (not the PDF Report Server app). How do I add a font?

Tags (1)
1 Solution

jlaw
Splunk Employee
Splunk Employee

Integrated PDF uses a Font Manager, which allows for character-to-font mapping. It maintains a lookup table that maps from 2 byte Unicode character code to font. The table is initialized such that the first font that handles a specific character code is stored as the font for rendering that character code. By default, the table is initialized with Helvetica and CJK CID fonts (in this order: Simplified Chinese, Traditional Chinese, Japanese, Korean). The directory $SPLUNK_HOME/share/splunk/fonts is scanned for any additional true type fonts. These are added in between Helvetica and the default CJK fonts.

If you want to add another font, your Splunk admin (is that you?) should add the font to $SPLUNK_HOME/share/splunk/fonts. If it doesn't already exist, create the fonts directory.

The new font must be a truetype Unicode font.

View solution in original post

jlaw
Splunk Employee
Splunk Employee

Integrated PDF uses a Font Manager, which allows for character-to-font mapping. It maintains a lookup table that maps from 2 byte Unicode character code to font. The table is initialized such that the first font that handles a specific character code is stored as the font for rendering that character code. By default, the table is initialized with Helvetica and CJK CID fonts (in this order: Simplified Chinese, Traditional Chinese, Japanese, Korean). The directory $SPLUNK_HOME/share/splunk/fonts is scanned for any additional true type fonts. These are added in between Helvetica and the default CJK fonts.

If you want to add another font, your Splunk admin (is that you?) should add the font to $SPLUNK_HOME/share/splunk/fonts. If it doesn't already exist, create the fonts directory.

The new font must be a truetype Unicode font.

Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...