41

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.

1

4 Answers 4

74

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

5
  • 2
    Yep - I seem to have been hit by this generating Asciidoctor documents, since upgrading to Monterey (not beta). Adding the Times font as you mention seems to have resolved it.
    – Steve
    Commented Nov 9, 2021 at 14:30
  • 1
    Had the same problem, worked for me, too. Thanks!
    – BNetz
    Commented Jan 30, 2022 at 21:54
  • 1
    Also had this problem with PlantUML, this fixed it.
    – Ricardo
    Commented Aug 29, 2022 at 12:17
  • I don't want to install Times. I already have Times New Roman. I'd rather not install a font from a web site I don't know very well. Why doesn't Java use that as "Times"? And is there a way to fix that? Commented Sep 14, 2023 at 2:36
  • That font seems to be break rendering of text set in Times in recent Chromium versions.
    – nohillside
    Commented Mar 29 at 10:44
11

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."

2
  • Make sure that all font variants are installed. When I dragged them into the Font Book app, only one of the font variants was installed. Double click all them works for me.
    – ePi272314
    Commented Apr 14, 2023 at 17:32
  • You can skip the step of dragging the TTC into Font Book, just drag it straight onto the Unpack TTC website. Commented Nov 2, 2023 at 16:08
5

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).

1
  • I'm just now joining this party,(MaOS Ventura 13.2.1 on Apple silicon and Java 11.04) and Jaco-Ben's solution was nice and clean---although it worries me about having to support my eventual users.
    – RadlyEel
    Commented Feb 25, 2023 at 17:58
0

Also in response to @nohillside from March 29 "That font seems to be break rendering of text set in Times in recent Chromium versions.":

I had the same problem on my mac (Sonoma 14.4.1) that plantuml (as a plugin for Visual Studio Code) did not render anymore due to a missing font "Times".

When I manually added "Times" to mac's fontbook again, plantuml worked but chromium showed garbage text here and there.

My solution to have both working was: Update Java to the latest version. And since plantuml relays on Java and also which fonts are used there, this finally solved the problem for me. Java does not require "Times" anymore, so I could reset the fontbook to make chromium work again and also plantuml in VSC worked again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.