Security

Changing fonts in Scheduled PDF reports - Splunk 4.1 - Ubuntu based

New Member

Hi,

I have configured Splunk PDF Print server and Splunk 4.1 on Ubuntu.

http://www.freeimagehosting.net/uploads/55fa25f0df.png

As shown in above screenshot [check the link], my default PDF Scheduled report comes with crapy fonts, in events. Only chart is visible. Can we change fonts of PDF reports?

With Regards, Nrupak Shah

Tags (1)
0 Karma

Contributor

$sudo apt-get install msttcorefonts

this pack works for me///

0 Karma

New Member

Hey jrodman, Lowell

Thanks for your help. I have installed new fonts, and also modified fonts in default.css at below location, and its done.

/* Basic Typography -------------------------*/ body, td { font-family:Bitstream Charter,DejaVu Serif; font-size:14px; color: #111; }

But still I am unable to change the font size of text displayed as labels inside a chart.

With Regards, Nrupak D Shah

0 Karma

Splunk Employee
Splunk Employee

Just curious as to what file name you made the CSS changes to etc/apps/pdfserver/ ?

0 Karma

New Member

Hi Lowell,

I had to install DejaVu fonts in order to use it, and then i had to make changed in CSS so that it will reflect in Splunk, because by default splunk was using some different fonts.

0 Karma

Super Champion

Keep in mind that all charting is handled using Flash. So I'm not sure how you would go about changing that, or if it's possible at all. Out of curiosity, was the CSS change necessary for you to see an improved font, or due to a font-size preference? (In other words, did installing DejaVu help, or was it your CSS change that made the difference?)

0 Karma

Super Champion

I setup the pdf server on Ubuntu 8.04, and installed the DejaVu fonts that were recommend by Ubuntu's firefox package. (Prior to setting up Splunk pdfreport app, we had no X install at all, so I had to install a handful of packages to satisfy firefox's dependencies.)

You should be able to install the DejaVu fonts with this:

sudo apt-get install ttf-dejavu-extra ttf-dejavu-core ttf-dejavu

This may or may not be your issue. For the purpose of tracking down the problem, try opening the PDF with Adobe's reader. Pull up the document properties, check out the font tab and see which fonts are being used in the document.

Path Finder

You mention you installed some packages. Can you please let me know what packages you installed because i am also facing dependency issues. Thanks

0 Karma

Splunk Employee
Splunk Employee

The method of creating the pdf is to run an html rendering engine on the content, which emits a pdf. The fonts it uses are likely to be the system fonts on the server where Splunk is installed.

My first guess, then, is to try installing some additional fonts on that server.