let styles: [UIFont.TextStyle] = [ // iOS 17 .extraLargeTitle, .extraLargeTitle2, // iOS 11 .largeTitle, // iOS 9 .title1, .title2, .title3, .callout, // iOS 7 .headline, .subheadline, .body, .footnote, .caption1, .caption2, ] for style in styles { let font = UIFont.preferredFont(forTextStyle: style) print("\(style): \(font.fontName) @ \(font.pointSize)") }