Ive got a LogAxis, and Im setting the tickLabelFont, but when JFreeChart renders the chart, its not using the supplied Font, but seems instead to be using the standard dialog font.
In ValueAxis:693, we pass off the rendering to AttrStringUtils.drawRotatedString, which in turn calls drawRotatedString() and then hands off the rendering to a TextLayout (AttrStringUtils:119) which is using a Plain, 12pt Dialog font.
I do see that the LogAxis is correctly allocating the space for the tickLabelFont (if you change the font size, then the spacing under the axis changes accordingly) its just not using the font specified.
A discussion forum for JFreeChart (a 2D chart library for the Java platform).
1 post • Page 1 of 1