の場合UILabel
、システム フォントを次のように設定できます。
label.font = UIFont.systemFontOfSize(18, weight: UIFontWeightMedium)
の場合CATextLayer
、フォント名を直接指定する代わりに、システム フォントを設定する同様の方法はありますか?
textLayer = CATextLayer()
textLayer.font = ??? // instead of CTFontCreateWithName("HelveticaNeue-Bold", 18, nil)