Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Change to thumbtack rise font
Browse files Browse the repository at this point in the history
  • Loading branch information
scottasoutherland committed Jun 10, 2024
1 parent e1526f5 commit 920b843
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/Thumbprint/Font.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public extension Font {
return
}

guard UIFont.familyNames.contains("Mark For Thumbtack") else {
print("Registered fonts at \(urls), but still missing Mark For Thumbtack font family.")
guard UIFont.familyNames.contains("Thumbtack Rise") else {
print("Registered fonts at \(urls), but still missing Thumbtack Rise font family.")
return
}

Expand Down Expand Up @@ -147,14 +147,14 @@ public extension Font {

if let font {
self.uiFont = font
} else if UIFont.familyNames.contains("Mark For Thumbtack") {
} else if UIFont.familyNames.contains("Thumbtack Rise") {
let fontName = switch (weight, UIAccessibility.isBoldTextEnabled) {
case (.normal, false):
"MarkForThumbtack-Regular"
"ThumbtackRise-Regular"
case (.normal, true), (.bold, false):
"MarkForThumbtack-Bold"
"ThumbtackRise-Bold"
case (.bold, true):
"MarkForThumbtack-Heavy"
"ThumbtackRise-Heavy"
}

self.uiFont = UIFont(name: fontName, size: size)! // swiftlint:disable:this force_unwrapping
Expand Down

0 comments on commit 920b843

Please sign in to comment.