Status: Closed (View Workflow)
Affects Version/s: 1.5.93
Fix Version/s: 1.12.4
Component/s: Web UI - Reporting
Security Level: Default (Default Security Scheme)
Environment:Operating System: Linux
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.
command.prefix=/usr/bin/rrdtool graph - --width 450 --imgformat PNG --font DEFAULT:6 --font TITLE:20 --start
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.