Font

extension Font
  • 全局自定义字体句柄,优先调用

    Declaration

    Swift

    public static var fontBlock: ((CGFloat, Font.Weight) -> Font)?
  • 返回系统Thin字体

    Declaration

    Swift

    public static func thinFont(size: CGFloat) -> Font
  • 返回系统Light字体

    Declaration

    Swift

    public static func lightFont(size: CGFloat) -> Font
  • 返回系统Medium字体

    Declaration

    Swift

    public static func mediumFont(size: CGFloat) -> Font
  • 返回系统Semibold字体

    Declaration

    Swift

    public static func semiboldFont(size: CGFloat) -> Font
  • 返回系统Bold字体

    Declaration

    Swift

    public static func boldFont(size: CGFloat) -> Font
  • 创建指定尺寸和weight的系统字体

    Declaration

    Swift

    public static func font(size: CGFloat, weight: Font.Weight = .regular) -> Font