I would like to get the language support / script of any fonts I have in my computer with terminal command. There is a way to see it through Font Book...
1 Answer
fc-scan
You can use the command line tool fc-scan
to list the properties of a font, including supported languages. The languages are reported under lang:
as ISO two-letter country codes:
fc-scan /Library/Fonts/Arial\ Unicode.ttf
fc-scan
is part of fontconfig
, which is available through the brew project using:
brew install fontconfig
See also Mac Terminal: Get list of Chinese fonts from a given folder
-
-
I am not aware of any built-in macOS tool that will show this information on the command line.
system_profiler SPFontsDataType
comes close but does not include the language field. May 2, 2020 at 15:46