24 August 2018

Java: Use Arial Fonts as Default Swing Fonts on Linux

I guess we all agree that sometimes the default fonts that Java uses on Linux are pretty ugly, doesn't it ? This issue may cause also problems when implementing GUI projects on Linux that will be used later on Windows machines: The default font used on Linux may have different dimensions / outlook than the fonts used on Windows, causing differences in the flow of text or / and messing up components in windows.