Contents

scaled(by:)

Scales the point size of the font.

Declaration

func scaled(by factor: CGFloat) -> Font

Discussion

Calls to scale are multiplicative, based on the size of the resolved font. For example,

Font.body
    .scaled(by: 2)
    .bold()
    .scaled(by: 3)

results in a bold body font 6x its usual size.