Skip to content

Commit 956a45b

Browse files
author
Guille Gonzalez
authored
Fix custom font resolution (#111)
1 parent 604da03 commit 956a45b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Sources/MarkdownUI/Style/Font.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,7 @@ private struct CustomFontProvider: Hashable, FontProvider {
203203
}
204204
#endif
205205

206-
return .init(
207-
fontAttributes: [
208-
.family: name,
209-
.size: size,
210-
]
211-
)
206+
return .init(name: name, size: size)
212207
}
213208
}
214209

0 commit comments

Comments
 (0)