Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font too small on HiDPI screens #233

Open
tferr opened this issue Oct 5, 2022 · 2 comments
Open

Font too small on HiDPI screens #233

tferr opened this issue Oct 5, 2022 · 2 comments
Assignees

Comments

@tferr
Copy link

tferr commented Oct 5, 2022

@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:

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
Copy link
Member

tinevez commented Oct 5, 2022

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

@tferr
Copy link
Author

tferr commented Oct 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants