for fontfamilyname in UIFont.familyNames {
print("family:'\(fontfamilyname)'")
for fontName in UIFont.fontNames(forFamilyName: fontfamilyname) {
print("\tfont:'\(fontName)'")
}
print("-------------")
}
for fontfamilyname in UIFont.familyNames {
print("family:'\(fontfamilyname)'")
for fontName in UIFont.fontNames(forFamilyName: fontfamilyname) {
print("\tfont:'\(fontName)'")
}
print("-------------")
}
本文标题:iOS 打印已拥有的所有字体
本文链接:https://www.haomeiwen.com/subject/khrdsktx.html
网友评论