iOS 打印已拥有的所有字体

2020-08-30  本文已影响0人  Eyes_cc
for fontfamilyname in UIFont.familyNames {
     print("family:'\(fontfamilyname)'")
     for fontName in UIFont.fontNames(forFamilyName: fontfamilyname) {
           print("\tfont:'\(fontName)'")
     }
     print("-------------")
 }
上一篇下一篇

猜你喜欢

热点阅读