Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I fix this : Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif"

system:Mac OS software:AnyLogic 8 Personal Learning Edition 8.7.6 language: Java

When I run my model, the console print this info:

Warning: the fonts "Times" and "Times" 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.

like image 428
huerbt Avatar asked Aug 01 '21 07:08

huerbt


People also ask

How do I enable the font Times on my Mac?

In the Font Book app on your Mac, select one or more disabled fonts or font families, or a disabled font collection. Do any of the following: Enable fonts or font families: Click the Enable button in the toolbar above the list of fonts. Enable a collection: Choose Edit > Enable [Collection].


3 Answers

We also recently had this issue on a mac running the latest public beta of Monterey.

For some reason the Times font was no longer installed or active on the Mac.

You can check in FontBook

enter image description here

You can simply reinstall it

I struggled to find a source online - her is one suggestion - https://www.freebestfonts.com/timr45w-font

like image 170
Jaco-Ben Vosloo Avatar answered Oct 27 '22 12:10

Jaco-Ben Vosloo


Just ran into this problem myself on OSX Monterey. Resolved it by upgrading to the latest version of Azul Zulu OpenJDK 15, which no longer has the dependency on the discontinued Times font (I think it uses the very similar Times New Roman instead).

like image 36
David Barts Avatar answered Oct 27 '22 12:10

David Barts


To install an OSX legacy font, such as Courier or Times, do the following:

Go to your system's font folder: /System/Library/Fonts.

Find the font you want with the TTC extension.

Drag it to Font Book and authorize its installation with your administration password.

It should now be in the ~/Library/Fonts folder.

Open Transfonter in your browser [https://transfonter.org/].

Select Unpack TTC and Upload.

Navigate to the *.ttc file you want and open it.

When conversion is complete, download the ZIP archive file and open it.

Drag all the *.ttf fonts into Font Book and install, using your administration password.

It will now be found as an active font in "All Fonts."

like image 1
Mickster01 Avatar answered Oct 27 '22 13:10

Mickster01