| 123456789101112131415161718192021222324252627282930313233 |
- import Foundation
- enum FontTracking: String, JSON, Identifiable, CaseIterable, Codable {
- var id: String { rawValue }
- case tighter
- case tight
- case normal
- case wide
- var displayName: String {
- switch self {
- case .tighter:
- NSLocalizedString("TighterFontTracking", comment: "")
- case .tight:
- NSLocalizedString("TightFontTracking", comment: "")
- case .normal:
- NSLocalizedString("NormalFontTracking", comment: "")
- case .wide:
- NSLocalizedString("WideFontTracking", comment: "")
- }
- }
- var value: Double {
- switch self {
- case .tighter: -0.07
- case .tight: -0.04
- case .normal: 0
- case .wide: 0.04
- }
- }
- }
|