swift4.2 打印所有系统字体

    func showAllFonts(){
let familyNames = UIFont.familyNames var index:Int = 0 for familyName in familyNames { let fontNames = UIFont.fontNames(forFamilyName: familyName as String)
for fontName in fontNames
{
index += 1 print("第 \(index) 个字体,字体font名称:\(fontName)")
}
}
}

  

上一篇:chmod 和 chown 的用法


下一篇:基于MVC4+EasyUI的Web开发框架形成之旅(7)--权限控制