Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-2691

OpenNMS+jrobin does not obey font selection

    XMLWordPrintable

    Details

    • Bugzilla Id:
      2627

      Description

      OpenNMS does not appear to pass the correct font definitions to the JRobin library, and JRobin appears to lie about the font definition that it actually uses.

      snmp-graph.properties:
      command.prefix=/usr/bin/rrdtool graph - --width 450 --imgformat PNG --font DEFAULT:6 --font TITLE:20 --start

      {startTime}

      --end

      {endTime}

      jetty.log:
      DEBUG [btpool0-18] JRobinRrdStrategy: large font = java.awt.Font[family=Monospaced,name=Monospaced,style=bold,size=12], small font = java.awt.Font[family=Monospaced,name=Monospaced,style=plain,size=10]

      Graph is available at the URL posted. As shown, the actual font chosen is proportional, and totally messes up the columns in the legend. Using JRobin through groovy, I get a monospaced font of some description.

      I would expect that either OpenNMS should be passing the font definition to JRobin from the command.prefix setting, or that there should be a dedicated font configuration in the properties file. I would also expect JRobin to throw an error if it had to use a proportional font, even though the debug says monospaced.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ranger Benjamin Reed
                Reporter:
                opennms@cricalix.net Duncan Hill
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: