-
-
Notifications
You must be signed in to change notification settings - Fork 280
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 issues #309
Comments
I wonder what font is used in other Lafs. Could you replace: FlatIntelliJLaf.install();
Font info = LinuxFontPolicy.getGnomeFont(); with UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
Font info = UIManager.getFont( "Label.font" ); and UIManager.setLookAndFeel( UIManager.getCrossPlatformLookAndFeelClassName() );
Font info = UIManager.getFont( "Label.font" ); and post the two screenshots? Thanks. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Here you go:
And yeah, I was expecting that, since Metal doesn't follow my settings either.... |
Many thanks. Yes, was expecting that for Metal too, but I actually thought that GTK is used as System Laf on Linux. Could you please also try: UIManager.setLookAndFeel( new GTKLookAndFeel() ); I also wonder whether the text in the JButton is totally out of vertical center for Metal and GTK Lafs as in your first screenshot |
Here's how JOptionPane looks in GTK laf: Surprisingly enough, it doesn't acquire correct fonts either. Here you can compare how it should look (MATE's oficial file browser: Caja 1.24) Honestly, I'm not sure where could be the fault:
|
Are there any news on this, or #310, by any chance? |
It seems FlatLaf has some issues trying to detect which are my current font settings, as demonstrated by this simple example:
This is how it looks
This is how it should look
Here's the code of this example (I had to modify FlatLaf src to access LinuxFontPolicy#getGnomeFont)
System Info
FlatLaf Versions Tested
FlatLaf (master)
FlatLaf (1.1.2)
Desktop Environment
MATE 1.24.0
java -version
openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-120.04, mixed mode, sharing)
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
uname -a
Linux PC 5.8.0-50-lowlatency 56~20.04.1-Ubuntu SMP PREEMPT Tue Apr 13 01:48:06 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: