45 lines
1003 B
Swift
45 lines
1003 B
Swift
//
|
|
// Fonts.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 7/27/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Enum that is matched up for the Verizon fonts.
|
|
public enum Font: FontProtocol {
|
|
case edsBold
|
|
case edsRegular
|
|
case dsLight
|
|
case etxBold
|
|
case etxRegular
|
|
case custom(String)
|
|
|
|
public var fontName: String {
|
|
switch self {
|
|
case .edsBold:
|
|
return "VerizonNHGeDS-Bold"
|
|
case .edsRegular:
|
|
return "VerizonNHGeDS-Regular"
|
|
case .dsLight:
|
|
return "VerizonNHGDS-Light"
|
|
case .etxBold:
|
|
return "VerizonNHGeTX-Bold"
|
|
case .etxRegular:
|
|
return "VerizonNHGeTX-Regular"
|
|
case .custom(let fontName):
|
|
return fontName
|
|
}
|
|
}
|
|
|
|
public static var allCases: [Font] {
|
|
[.edsBold, .edsRegular, .dsLight, .etxBold, .etxRegular]
|
|
}
|
|
|
|
/// File Extension for each of the Font enums.
|
|
public var fontFileExtension: String {
|
|
return "otf"
|
|
}
|
|
}
|