Ad Widget

Collapse

Font size in maps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lucac
    Junior Member
    • Sep 2013
    • 20

    #1

    Font size in maps

    Hello,
    I know it has been answered several times on forum, but was unable to change the font name n my centos 7 install.
    I tried setting up the font as follow

    //define('ZBX_FONTPATH', '/usr/share/fonts/dejavu'); // where to search for font (GD > 2.0.18)
    //define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans-Bold'); // font file name
    //define('ZBX_FONT_NAME', 'DejaVuSans-Bold');

    But no changes in map ,even restarting apache.

    Am I missing something obvious?
    TIA
  • gmanual
    Junior Member
    • Oct 2008
    • 10

    #2
    /usr/share/zabbix/js/vector/class.svg.map.js

    There are various 'font-size' set in the file, edit, and refresh browser.

    Comment

    • eternalcuriosity
      Junior Member
      • Jun 2018
      • 4

      #3
      Originally posted by gmanual
      /usr/share/zabbix/js/vector/class.svg.map.js

      There are various 'font-size' set in the file, edit, and refresh browser.
      Changing 'font-size' in the following part did the trick for me.

      container = this.canvas.add('g', {
      class: 'map-container',
      'font-family': SVGMap.FONTS[9],
      'font-size': '20px'
      });

      Thanks

      Comment

      • rubanoid
        Junior Member
        • Mar 2016
        • 12

        #4
        Благодарю. Ваш вариант работает на заббиксе 4.0. На других не проверял.

        Comment

        • djack
          Junior Member
          • Jun 2010
          • 6

          #5
          How to change font size in map in zabbix 4.0 docker installation?

          Comment

          • LosPibesdeIT
            Junior Member
            • Oct 2025
            • 1

            #6
            Hi, in the latest version 7.4.4, the path to enlarge fonts no longer exists: /usr/share/zabbix/js/vector/class.svg.map.js
            Does anyone know how to do it in this new version?

            Comment

            Working...