나는 이것이 꽤 오래된 게시물이라는 것을 알고 있지만, 비슷한 것을 찾는 동안 Google에서 우연히 발견했습니다 (대부분 터미널을 통해 활성 글꼴을 나열하려고합니다). 활성화 된 글꼴이 시스템 정보에 나열되어 있음을 기억했습니다. system_profiler 명령에서 가져옵니다. system_profiler에서 글꼴 정보를 가져 오는 명령이 있습니다.
system_profiler SPFontsDataType
그게 다야. 다음과 같은 형식으로 거대한 글꼴 데이터 목록을 반환해야합니다.
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
원하는대로 grep하고 조작 할 수 있어야합니다.