feat(RES-34): Fix plist font filename (#14)
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
Reviewed-on: #14
This commit is contained in:
@ -7,13 +7,21 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
typealias FontName = String
|
||||
// swiftlint:disable no_grouping_extension
|
||||
|
||||
struct FontName: Hashable {
|
||||
|
||||
let postscriptName: String
|
||||
let filename: String
|
||||
let fileExtension: String
|
||||
}
|
||||
|
||||
extension FontName {
|
||||
|
||||
var fontNameSanitize: String {
|
||||
self.removeCharacters(from: "[]+-_")
|
||||
postscriptName.removeCharacters(from: "[]+-_")
|
||||
}
|
||||
|
||||
|
||||
func getProperty(isStatic: Bool, isSwiftUI: Bool) -> String {
|
||||
if isSwiftUI {
|
||||
if isStatic {
|
||||
|
Reference in New Issue
Block a user