对于 UILabel
,我可以设置系统字体:
label.font = UIFont.systemFontOfSize(18, weight: UIFontWeightMedium)
对于
CATextLayer
,是否有设置系统字体的类似方式,而不是直接给出字体名称的方法?textLayer = CATextLayer()
textLayer.font = ??? // instead of CTFontCreateWithName("HelveticaNeue-Bold", 18, nil)
CTFontCreateUIFontForLanguage
并将CTFontUIFontType
设置为System
? - juniperi