'Intellij Java Warning "Times" and "Lucida Bright" fonts are not available

I'm using Java version 8 update 301 on intelliJ IDEA CE on Mac OS Big Sur and get the error:

Warning: the fonts "Times" and "Lucida Bright" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.

Any idea how to re-enable the times font?



Solution 1:[1]

The "Times" font is not available in macOS 12 Monterey. You can find it online and install it.

Or better, update Java to a more recent version; this change in macOS has been taken into account in Java, see JDK-8273358.

Solution 2:[2]

You must do the following

  1. Download the font from the website
  2. Unzip the package font and install it Install font
  3. Restart the java application.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexey Ivanov
Solution 2 martosfre