123456789101112131415161718192021 |
- //
- // NSFont+SFProText.swift
- // PDF Master
- //
- // Created by lizhe on 2023/2/8.
- //
- import Foundation
- extension NSFont {
- @objc static func SFProTextRegularFont(_ size: CGFloat) -> NSFont {
- return NSFont(name: "SFProText-Regular", size: max(1, size)) ?? NSFont.systemFont(ofSize: max(1, size))
- }
-
- @objc static func SFProTextSemiboldFont(_ size: CGFloat) -> NSFont {
- return NSFont(name: "SFProText-Semibold", size: max(1, size)) ?? NSFont.systemFont(ofSize: max(1, size))
- }
-
- @objc static func SFProTextBoldFont(_ size: CGFloat) -> NSFont {
- return NSFont(name: "SFProText-Bold", size: max(1, size)) ?? NSFont.systemFont(ofSize: max(1, size))
- }
- }
|