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 is really small #69

Open
KittyChoo opened this issue May 16, 2017 · 10 comments
Open

Font is really small #69

KittyChoo opened this issue May 16, 2017 · 10 comments

Comments

@KittyChoo
Copy link

Tried both Java 32 and 64 bit, and the older version of Mesquite

capture

@kdbchau
Copy link

kdbchau commented Oct 16, 2017

I have the same problem - did you find a fix?

@KittyChoo
Copy link
Author

Didn't manage to. Used it on Mac instead.

@KittyChoo KittyChoo reopened this Oct 17, 2017
@DMaddison
Copy link
Contributor

With that window at the front, you can choose Edit>Font Size to adjust the font size in this window. If you are concerned about the small size of the menus, that is a bug in Java on Windows, and it is very difficult for us to build a workaround for it.

@KittyChoo
Copy link
Author

Thanks for your reply. I did try to increase the font size, but the menu buttons were still very small. Thanks for letting us know it's a bug, at least I know I'll be wasting time trying to mess around to fix it.

@kdbchau
Copy link

kdbchau commented Jan 26, 2018

Still broken.

@Injuis
Copy link

Injuis commented Apr 6, 2018

Yep. If you browse the code, the menu font size is hard coded to 10 pt! Tiny on anything bigger than 1080p.
They could either program a font size changer or implement a dynamic font size based on screen resolution. Something like
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); double screenWidth = screenSize.getWidth(); setFont(new Font ("SanSerif", Font.PLAIN, Math.max(10, Math.round(screenWidth/100)));

@DMaddison
Copy link
Contributor

@Injuis The menu font size is not hard coded. In fact, I don't think we touch menu font size at all. The font size of many windows (including the one shown in the initial issue post) begins at 10 point, but it user-adjustable. When I last looked into this, this issue of small menus was caused by a bug in Java in Windows, and, at the time, there was no workaround I could find for this.

@Injuis
Copy link

Injuis commented Apr 9, 2018

Apologies, the line I looked at turned out to have done nothing after compiling the source myself. I was, however, able to change the fonts sizes of the tabs, and submenus, just not the File, Edit, View, and Help menubar items. From what I've read, you'd have to switch to Swing to get that to work.

@DMaddison
Copy link
Contributor

@Injuis Yes, Swing would do it. We probably need to make that change, as Oracle is not putting resources into fixing the many AWT bugs. However, that would require a serious chunk of dedicated time, as there is so much AWT code in Mesquite (as we started it well before Swing). I'm hoping to work on that switch this fall, but we shall see...

@AEgit
Copy link

AEgit commented May 10, 2018

Note that Swing is deprecated and is supposed to be replaced by JavaFX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants