CoreText Font Error on MacOS Big Sur
Show older comments
Since upgrading to R2020b on Big Sur, whenever I start MATLAB from the command line (matlab -nodesktop -nosplash), I get the following error messages:
< M A T L A B (R) >
Copyright 1984-2020 The MathWorks, Inc.
R2020b Update 1 (9.9.0.1495850) 64-bit (maci64)
September 30, 2020
To get started, type doc.
For product information, visit www.mathworks.com.
>> 2021-02-01 06:44:12.194 MATLAB_maci64[42710:446809] CoreText note: Client requested name ".SFNS-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2021-02-01 06:44:12.194 MATLAB_maci64[42710:446809] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2021-02-01 06:44:12.200 MATLAB_maci64[42710:446809] CoreText note: Client requested name ".SFNS-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2021-02-01 06:44:12.425 MATLAB_maci64[42710:446809] CoreText note: Client requested name ".SFNS-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2021-02-01 06:44:12.426 MATLAB_maci64[42710:446809] CoreText note: Client requested name ".SFNS-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
I get the same error messages in the terminal when I use just type matlab as well. When I start MATLAB normally by clicking the application icon, these error messages do not appear in the command window. I did not experience these problems whe using R2020a on Catalina or R2020a on Big Sur.
13 Comments
Raymond Walsh
on 12 Feb 2021
I'm experiencing the same issue. I normally use matlab through the terminal only and find this issue quite annoying. Please update if anyone finds a solution to this. Supressing these messages would be sufficient.
Thanks!
Peter
on 7 Mar 2021
Following...
Dave Ortiz-Suslow
on 8 Mar 2021
Thanks for posting this, I am having the same issue (also trying to run matlab through Terminal) using Big Sur (11.2.2) and 2020b. Just switched over from a High Sierra+Matlab 2017 set-up with no problems. I'll try to suppress these messages, but a solution would be nice.
Thank you.
Bridge Jay
on 4 May 2021
Same issue on MacOS 10.15.7 when tying to run matlab through terminal
Evelyn Maniaki
on 7 Jun 2021
I couldn't open MATLAB by clicking the icon in the dock and started using the terminal in order to do so; same errors. I have MATLAB 2021a and Big Sur 11.3.1.
Shengchao Lin
on 11 Jun 2021
Edited: Shengchao Lin
on 11 Jun 2021
Can report the same issue R2021a on BigSur 11.4, not on start up but when I try to plot something.
Belinda Marchand
on 17 Jul 2021
Confirming, same issue here.
Ben Lackey
on 13 Aug 2021
Same issue. Running latest (R2021a Update 4 (9.10.0.1710957) 64-bit (maci64)) on a MacBook Air (M1, 2020).
Stefan Glasauer
on 19 Aug 2021
Same here, MATLAB Version: 9.10.0.1710957 (R2021a) Update 4, Operating System: macOS Version: 11.5.2 Build: 20G95, running on a MacBook Pro (15-inch, 2017), 3,1 GHz Quad-Core Intel Core i7.
vaness lu
on 5 Sep 2021
Same with MATLAB R2021a, on Big Sur 11.5.2 (20G95), Intel iMac
Joe
on 4 Oct 2021
I am finding I can't get it to move past this error message right now. I am wondering if there is a seetup I missed for Matlab 2021?
Paras Patel
on 5 Oct 2021
Hi - I just ran into this issue today as well and I searched google for a fix. Did not find any but I'm able to suppress it via (see below) which solves my immediate annoyance.
/Applications/MATLAB_R2021a.app/bin/matlab -nosplash -nodesktop 2> >(grep -v CoreText)
(i.e. I added the 2> >(grep -v CoreText) to redirect the stderr to grep and filtered out CoreText).
I would appreciate a more robust solution from MW though.
Peter G
on 10 Feb 2022
I get the same on a macbook pro running 2021b under Catalina
MATLAB CoreText note: Client requested name ".SFNS-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
Answers (2)
M. A. Hopcroft
on 9 May 2022
3 votes
I had the same issue until just now and it looks like I got lucky with a solution. I had a java-related Matlab crash, and the Crash Reporter suggested this solution, which is to replace the Java JRE that is installed with Matlab with a different version:
I followed this procedure (replaced the MW JRE with the Adoptium JRE 8) for both R2020b and R2021b, and in both cases the font warning no longer appears. I have only tried this on macOS Monterey 12.3.1.
PS - Note that Java version 8 is not the default download at the Adoptium site, you have to select it specifically.
2 Comments
jaydeequeue
on 9 Jul 2022
This worked for me under macOS Monterey 12.4 and MATLAB 2021a after installing the macOS JRE package for release jdk8u332-b09 found at https://adoptium.net/temurin/archive?version=8, removing /Applications/MATLAB_R2021a.app/sys/java/jre/maci64/jre, then making a symbolic link from /Applications/MATLAB_R2021a.app/sys/java/jre/maci64/jre to /Library/Java/JavaVirtualMachines/temurin-8.jre/Contents/Home
This also worked for me but under macOS Sonoma 14.7.1 and MATLAB2023b after:
1) Installing OpenJDK8U-jre_x64_mac_hotspot_8u432b06.pkg found at https://adoptium.net/es/temurin/releases/?version=8
2) Rename "/Applications/MATLAB_R2023b.app/sys/java/jre/maci64/jre" to "/Applications/MATLAB_R2023b.app/sys/java/jre/maci64/jre_ORIGINAL" (avoid to lose the original installation)
3) Change directoty to "/Applications/MATLAB_R2023b.app/sys/java/jre/maci64" and make a symbolic link from "/Library/Java/JavaVirtualMachines/temurin-8.jre/Contents/Home" to a new "jre"
Joshua O'Reilly
on 9 Oct 2021
Edited: Walter Roberson
on 14 Nov 2024
I found adding the
-nodisplay
flag to your command fixed it for me (or maybe just surpressed it). So:
matlab -nodesktop -nosplash -nodisplay
I'm running MATLAB R2021a on a Macbook Air M1 with macOS 11.6.
Edit: based on this article, you may be able to get away with just -nodisplay:
2 Comments
Jack Shannon
on 9 Oct 2021
Joshua O'Reilly
on 9 Oct 2021
Oh, well that's no good. Sorry for the bad recommendation, I got this "working" today and hadn't tried creating figures yet.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!