listTrueTypeFonts on Mac OSX does not list all installed TrueType fonts

2 次查看(过去 30 天)
On my Mac (OSX Monetery 12.5.1) Matlab's listTrueTypeFonts only lists installed TrueType fonts located in /Users/thisuser/Library/Fonts or /System/Library/Fonts, but not in the subfolder /System/Library/Fonts/Supplemental, where actually most of the installed TrueType fonts on my computer are located.
One workaround is to copy a ttf file from /System/Library/Fonts/Supplemental to another folder, and install it from there, so that it will be copied to the user folder /Users/thisuser/Library/Fonts.
Any other solution? I guess this is a bug, and listTrueTypeFonts should list all installed fonts, including those located in Supplemental ...
  1 个评论
Stefan Glasauer
Stefan Glasauer 2022-8-18
编辑:Stefan Glasauer 2022-8-21
Update: the newly installed font shows up in listTrueTypeFonts, but, as an example, when I install "Courier New", I get an error message when trying to use it:
Error using insertText>populateGlyphBuffer_sim
FreeType: Unable to load font file.
Error in insertText (line 146)
populateGlyphBuffer_sim(font,fontFileName,faceIndex,fontSize);
The crash happens in visionPopulateGlyphBuffer, which is "an undocumented builtin function" according to Matlab help.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by