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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...