HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
687 stars 129 forks source link

Text Size calculated too small #184

Open Moosleitner opened 4 years ago

Moosleitner commented 4 years ago

For Gauge with ModernSkin and large values (>= 4 digits) the valueText size calculation seems to be wrong, text is way too small: image

Reason seems to be the effect of the text is also considered when determining the best size (done in Helper.adjustTextSize ). Commenting out the line 246 in ModernSkin valueText.setEffect(bigGlow); solves the issue for me: image

I think I have observed very small text for large values before also in another component. I cannot say where at the moment.