1. Home
  2. Knowledge Base
  3. Getting Started & How to (EN)
  4. How can I add fonts in order to use them in the graphs and reports?

How can I add fonts in order to use them in the graphs and reports?

To add fonts to Pandora FMS, you only need to copy them in the include/fonts directory. For fonts to work in PDF reports, the name of the font file must match the font family name in lowercase without spaces. For example, for the font family name Honoka Mincho the correct file name would be honokamincho.ttf.

On GNU/Linux you can use ttfdump to find out the right font family under the section Name table 1. For example:

$ ttfdump font_1_honokamin.ttf | grep -A10 "Name table   1"
Name table   1.  PlatformID:     1
                EncodingID:     0
                LanguageID:     0
                NameID:         1
                Length:         13
                Offset:         256
                48 6f 6e 6f 6b 61 20 4d 69 6e>  Honoka Min
                63 68 6f     > cho
Name table   2.  PlatformID:     1
                EncodingID:     0
                LanguageID:     0

 

Was this article helpful?

Related Articles

¿Necesita ayuda?

¿No encuentra una solucion? No se preocupe, nuestro trabajo es ayudarle.
Contactar con soporte

Recent Discussions