How can I get a list of the available NSFont families?

前端 未结 6 1656
故里飘歌
故里飘歌 2021-02-05 10:15

How can I get a list of the available NSFont families, preferably with the fontName: equivalents.

6条回答
  •  半阙折子戏
    2021-02-05 10:32

    Check Apple's documentation, for instance: http://support.apple.com/kb/HT5379.

    -[NSFontManager availableFontFamilies] may reveal fonts that are not a part of the version of OS X you are targeting (I think this is beacause they were loaded with other applications, for example Adobe Illustrator).

提交回复
热议问题