TrackMate icon indicating copy to clipboard operation
TrackMate copied to clipboard

Font too small on HiDPI screens

Open tferr opened this issue 1 year ago • 2 comments

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

image

I guess the issue is hardwired here:

https://github.com/trackmate-sc/TrackMate/blob/2f1f9fed0a5bad2ebefb06372801d653d0864b61/src/main/java/fiji/plugin/trackmate/gui/Fonts.java#L29-L37

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.

tferr avatar Oct 05 '22 13:10 tferr

My main issue is that I do not have a 4k screen to debug yet.

tinevez avatar Oct 05 '22 15:10 tinevez

If nobody else complains, then it is probably not urgent :smile: . If it becomes an issue, ping me and I can try to help on my setup.

tferr avatar Oct 10 '22 02:10 tferr