@tinevez , just noticed that trackmate has unreadable fonts on a 4K display on Linux. Here is a comparison to a regular scijava command prompt:

I guess the issue is hardwired here:
|
public static final Font FONT = new Font( "Arial", Font.PLAIN, 10 ); |
|
|
|
public static final Font BIG_FONT = new Font( "Arial", Font.PLAIN, 14 ); |
|
|
|
public static final Font SMALL_FONT = FONT.deriveFont( 8 ); |
|
|
|
public static final Font SMALL_FONT_MONOSPACED = new Font( "Courier New", Font.PLAIN, 11 ); |
|
|
|
public static final Dimension TEXTFIELD_DIMENSION = new Dimension( 40, 18 ); |
I guess an option would to be define the base font from the UIManager e.g., UIManager.getFont("TextField.font").getSize(); and scale the others from there!? There is also the gui scaling factor in IJ1 prefs that could be applied. (the assumption there, would be that if users are scaling AWT fonts, they will likely want to scale TrackMate fonts as well).
Java 11, and Mac/Windows may be shielded from this. Did not check.
@tinevez , just noticed that trackmate has unreadable fonts on a 4K display on Linux. Here is a comparison to a regular scijava command prompt:
I guess the issue is hardwired here:
TrackMate/src/main/java/fiji/plugin/trackmate/gui/Fonts.java
Lines 29 to 37 in 2f1f9fe
I guess an option would to be define the base font from the UIManager e.g.,
UIManager.getFont("TextField.font").getSize();and scale the others from there!? There is also the gui scaling factor in IJ1 prefs that could be applied. (the assumption there, would be that if users are scaling AWT fonts, they will likely want to scale TrackMate fonts as well).Java 11, and Mac/Windows may be shielded from this. Did not check.