I need to use custom font in my app. While the built-in standard font will align in center automatically, the custom font seems to align "top"(seeing red border part) instead of "center"(blue border part). Is there any approach to fix it?
struct ContentView: View {
var body: some View {
VStack(spacing: 20){
Text("SEPTEMBER")
.font(.largeTitle)
.border(.blue)
Text("SEPTEMBER")
.font(Font.custom("Arial Hebrew", size: 20))
.border(.red)
}
}
}