Font サイズ
swift
let fonts: [(Font, String)] = [
(.largeTitle , "largeTitle"),
(.system(size: 34) , "34"),
(.title , "title"),
(.system(size: 28) , "28"),
(.title2 , "title2"),
(.system(size: 22) , "22"),
(.title3 , "title3"),
(.system(size: 20) , "20"),
(.headline , "headline"),
(.system(size: 17).bold() , "bold 17"),
(Font.body , "body"),
(.system(size: 17) , "17"),
(Font.callout , "callout"),
(.system(size: 16) , "16"),
(.subheadline , "subheadline"),
(.system(size: 15) , "15"),
(.footnote , "footnote"),
(.system(size: 13) , "13"),
(.caption , "caption"),
(.system(size: 12) , "12"),
(.caption2 , "caption2"),
(.system(size: 11) , "11"),
]
FontWeight
swift
Text("ultraLight").fontWeight(.ultraLight)
Text("thin").fontWeight(.thin)
Text("light").fontWeight(.light)
Text("regular").fontWeight(.regular)
Text("medium").fontWeight(.medium)
Text("semibold").fontWeight(.semibold)
Text("bold").fontWeight(.bold)
Text("heavy").fontWeight(.heavy)
Text("black").fontWeight(.black)
FontStyle
Primary Secondary Tertiary Quaternary Quinary