We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72aa309 + 5a1c206 commit 2c8e0dbCopy full SHA for 2c8e0db
Sources/SwiftRichString/Attributes/FontConvertible.swift
@@ -62,7 +62,7 @@ extension Font: FontConvertible {
62
#elseif os(watchOS)
63
return Font(name: self.fontName, size: (size ?? WATCHOS_SYSTEMFONT_SIZE))!
64
#else
65
- return Font(name: self.fontName, size: (size ?? Font.systemFontSize))!
+ return Font(descriptor: self.fontDescriptor, size: (size ?? Font.systemFontSize))
66
#endif
67
}
68
0 commit comments