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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...