Get font size and weight in SwiftUI

Is there a way to get font size and weight in SwiftUI? I want to do custom drawing in code that matches the style of the SF symbols.

I know that Text/Font is late resolved, but if I drew in a late resolved environment like Canvas, that would work for this. However ResolvedText in Canvas does not seem to provide any hints either on which size and weight are used. Am I missing something?

Replies

Specifically, a ResolvedSymbolConfiguration that can resolve in a Canvas would be the thing I look for. This should have getters for scale, pointSize and weight.