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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...