info.plist
μΆκ°Info.plist > Information Property List >
Fonts provided by application
public enum BalooBhai2Type: String {
case semibold = "-SemiBold"
case regular = "Regular"
case extraBold = "-ExtraBold"
case bold = "-Bold"
case medium = "-Medium"
}
static func BalooBhai2(_ type: BalooBhai2Type = .regular, size: CGFloat = UIFont.systemFontSize) -> UIFont {
return UIFont(name: "BalooBhai2\(type.rawValue)", size: size)!
}
static func Jua(size: CGFloat = UIFont.systemFontSize) -> UIFont {
return UIFont(name: "Jua-Regular", size: size)!
}
numberLabel.font = UIFont.BalooBhai2(.bold, size: 16.0)
π‘ μ λ°©λ²μΌλ‘ μ μ©μ΄ μλ λ
SceneDelegate.swift
μwillConnectTo
ν¨μμfor fontFamily in UIFont.familyNames { for fontName in UIFont.fontNames(forFamilyName: fontFamily) { print(fontName) } }
μ€μ νμΌλͺ κ³Ό λ€λ₯Έ ν°νΈλͺ μ΄ μ μ©λμ΄ μμ μ μμΌλ―λ‘ νμΈν΄μ ν΄λΉ ν°νΈλͺ μΌλ‘ μ½λλ₯Ό μμ±ν΄μ£Όλ©΄ λ¨