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…
Best 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:
I don't think it'll be possible - terminal-based applications (as those running in terminal emulators like Terminal.app, iTerm.app, etc are) don't support multiple concurrent fonts. This is because a terminal application is written to run on a traditional dumb terminal which wouldn't have the concept of multiple fonts. Within a terminal emulator, all text is displayed in the same font and this is why the sidebar doesn't look as it should.
The only solution is to use a version of Emacs running under either Cocoa/Carbon (eg, Emacs.app or Aquamacs) or X11.
I would say you are the slowest part of the equation in most cases. If you find yourself slowing down since you have too many choices, slim down your fonts. If not, don't worry until you notice a program you need to be responsive lagging.
On the CPU side, any computer will track 10,000 files as easily as it tracks 1. Unless you have software that is really poorly programmed and refuses to render a font menu until it loads a sample of each of the 1000 font faces - you'll likely not ever notice a slow down. No one cleans out their iTunes library since there are 10,000 or 40,000 music files since you never access them all at once. The smart programmer makes an ordered list to hold the playlists and only references the files when you need to play a specific song.
You can test this yourself by opening a word processor and a spreadsheet and open the font picker. Time how fast it loads and then go in and deactivate 900 of the font faces and repeat the measurement.
You'll probably have slowness the first time the program or the OS has to traverse the list of active fonts and do some caching. After that, the speed to open the UI should be basically constant whether you have 100, 1000 or 10000 items to load.
Best 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 underlang:
as ISO two-letter country codes:fc-scan
is part offontconfig
, which is available through the brew project using:See also Mac Terminal: Get list of Chinese fonts from a given folder