LogTicks dont seem to be rendered with TickLabelFont

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
StanAccy
Posts: 5
Joined: Fri Jun 20, 2008 6:47 pm

LogTicks dont seem to be rendered with TickLabelFont

Post by StanAccy » Wed Oct 17, 2018 4:33 am

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.

Locked