         let font = CGFont(provider)
 
         guard CTFontManagerRegisterGraphicsFont(font, nil) else { return false }
-        guard let postscriptName = font.postScriptName as? String,
+        guard let postscriptName = font.postScriptName as String?,
             NameDictionary(storage: storage).setPostscriptName(postscriptName, for: _font) else {
                 CTFontManagerUnregisterGraphicsFont(font, nil)
 

        self.storage = storage
    }


    @discardableResult func register(_ _font: Font) -> Bool {
        guard let data = try? Data(contentsOf: storage.URL(for: _font)),
            let provider = CGDataProvider(data: data as CFData) else {


import Foundation

/// The class to register font.
final class FontRegister {
    private let storage: Storage

