Skip to content

Commit 90b7ad0

Browse files
committed
feat: custom 폰트를 적용하기 위해 pretendard case 추가
1 parent 360ea3c commit 90b7ad0

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

BoostDesignSystem/Sources/BoostDesignSystem/Sources/Extensions/View+Font.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ private extension BoostFont {
6464
.custom(Pretendard.medium.rawValue, size: size)
6565
case let .caption1(.regular(size)):
6666
.custom(Pretendard.regular.rawValue, size: size)
67+
case let .pretendard(style, size):
68+
.custom(style.rawValue, size: size)
6769
}
6870
}
6971
}

BoostDesignSystem/Sources/BoostDesignSystem/Sources/Fonts/BoostFont.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public enum BoostFont {
1616
case body1(Weight)
1717
case body2(Weight)
1818
case caption1(WeightWithSize)
19+
case pretendard(_ name: Pretendard, size: CGFloat)
1920

2021
public enum Weight {
2122
case bold

BoostDesignSystem/Sources/BoostDesignSystem/Sources/Fonts/Pretendard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// MARK: - Pretendard
99

10-
enum Pretendard: String, CaseIterable {
10+
public enum Pretendard: String, CaseIterable {
1111
case black = "Pretendard-Black"
1212

1313
case extraBold = "Pretendard-ExtraBold"

0 commit comments

Comments
 (0)