StyleConstants.setFontSize float value

ruffer

Grünschnabel
Hi,

depending on some zoom level i have to set the font size on JTextPane which can be float value. But StyleConstants.setFontSize does't support float. Rounding to int is not an option.

Any ideas how to override DefaultStyleDocument so that float values are suported?

Thanks in advance.
 
Zurück