question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

nope

This is how it should look

ok

Here’s the code of this example (I had to modify FlatLaf src to access LinuxFontPolicy#getGnomeFont)

public class Main {
	public static void main (final String[] argv) {
		FlatIntelliJLaf.install();
		Font info = LinuxFontPolicy.getGnomeFont();
		String text = "This is what FlatLaf thinks it's my system wide font:\n\n";
		JOptionPane.showOptionDialog(
				null,
				text + info.toString(),
				"Correct Font Example",
				0,
				JOptionPane.INFORMATION_MESSAGE,
				null,
				new Object[] {"A button, of course"}, 0
				);
	}
}

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
DevCharlycommented, Apr 20, 2021

@kingthorin please open a new issue

0reactions
DevCharlycommented, May 4, 2021

Had some issues with PR #310

There is a fix in commit 9edaf5892949523096a1270e45b16b06e4fb4d68 Please give it a try…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot font issues - Adobe Support
Font issues, especially damaged fonts, can lead to various issues in Illustrator and InDesign. Follow the troubleshooting steps explained in ...
Read more >
Font Issues: 5 Tips to Avoid problems at the Printer ...
Here are 5 quick tips to help you over come potential font issues. 1. Get Organized. If you are laying out a design,...
Read more >
How to solve common font issues in editable PDFs
STEP 1: CHECK THAT THE FONTS HAVE BEEN EMBEDDED · Open the PDF in Adobe Reader · Right click on the PDF and...
Read more >
Troubleshooting Font Issues - Oracle Help Center
To help resolve font issues that may occur in your applications, this section provides the following troubleshooting information:.
Read more >
Troubleshoot font issues - Figma Help Center
Troubleshoot font issues. In this article, we'll explore some common issues with text and fonts and guide you on how to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found