HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
694 stars 131 forks source link

Change the fontsize of TickMarks #204

Closed Pureandy closed 3 years ago

Pureandy commented 3 years ago

Hello Gerrit,

I have a Question if it's possible to change the fontsize of Tickmarks without setting custom Tickmarks?

The Dokumentation says: The default font size is 18px at a size of 250px. This value will be used to calculate the currentfont size for the ticklabels when scaling.

The Problem is with high values as Tickmarks the numbers are going inside of the Gauge.

Screenshot_1

Maybe there is an easy solution to this, that I don't see.

Thanks in advance.

HanSolo commented 3 years ago

If I remember right there should be a property named customTickLabelFontsize in Gauge.

Pureandy commented 3 years ago

Yes there is and it's also working for custonTickLabels. I would like to not have to create custom TickLabels if the only thing that I want to change is the fontSize.

HanSolo commented 3 years ago

Ah ok...got it...so I could implement a method that would enable custom tick label font size only e.g. setCustomTickLabelFontSizeEnabled() etc. Would that work for you?

Pureandy commented 3 years ago

that would work yes :)

HanSolo commented 3 years ago

Ok...will implement it...and will let you know once it is in...

HanSolo commented 3 years ago

I've implemented it with the latest commit, could you give it a try?

Pureandy commented 3 years ago

I just tested it and it works. Thanks alot. Highly appreciate your work. It would be very helpful if you could create a new Release with this new feature :)

HanSolo commented 3 years ago

Okidoki...will release a new version now...

HanSolo commented 3 years ago

Fixed with version 11.6