So che questo è piuttosto un vecchio post, ma mi sono imbattuto in esso da Google mentre cercavo qualcosa di simile (principalmente volevo solo elencare i font attivi tramite Terminal.) Ho finito per ricordare che i font attivati sono elencati in System Information che può essere estratto dal comando system_profiler.
Detto questo, ecco il comando per estrarre le informazioni sui font da system_profiler:
system_profiler SPFontsDataType
Questo è tutto. Dovrebbe restituire un enorme elenco di dati sui font nel formato di:
Fonts:
Arial Narrow.ttf:
Kind: TrueType
Valid: Yes
Enabled: Yes
Location: /Library/Fonts/Arial Narrow.ttf
Typefaces:
ArialNarrow:
Full Name: Arial Narrow
Family: Arial Narrow
Style: Regular
Version: Version 2.38.1x
Vendor: The Monotype Corporation
Unique Name: Arial Narrow Regular : 2007
Designer: Robin Nicholas, Patricia Saunders
Copyright: © 2007 The Monotype Corporation. All Rights Reserved.
Trademark: Arial is a trademark of The Monotype Corporation in the United States and/or other countries.
Description: Monotype Drawing Office 1982. A contemporary sans serif design, Arial contains more humanist characteristics than many of its predecessors and as such is more in tune with the mood of the last decades of the twentieth century. The overall treatment of curves is softer and fuller than in most industrial-style sans serif faces. Terminal strokes are cut on the diagonal which helps to give the face a less mechanical appearance. Arial is an extremely versatile family of typefaces which can be used with equal success for text setting in reports, presentations, magazines etc, and for display use in newspapers, advertising and promotions.
Outline: Yes
Valid: Yes
Enabled: Yes
Duplicate: No
Copy Protected: No
Embeddable: Yes
che dovresti essere in grado di eseguire grep e manipolare come preferisci.