Swift95

Fonts95

Semantic and arbitrary-size typography for Swift95 content.

Fonts95 provides title roles, body text, and a font factory that can preserve Dynamic Type scaling in a custom family.

Use it

import Swift95
import SwiftUI

struct Fonts95Example: View {
  var body: some View {
    Text("Custom body text")
      .font(
        Fonts95.classic.font(
          size: 18,
          relativeTo: .body
        ))
  }
}

Essential behavior

Rolestitle, title2, title3, and body cover the standard component hierarchy.
ScalingUse the relativeTo overload for Dynamic Type-aware arbitrary sizes.
ClassicThe bundled W95FA family is registered lazily.

Related

Open the complete Fonts95 API reference →