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 the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...