커스텀 폰트 pretendard-regular, gmarket-regular를 사용하고 있던 것을 appFont 모디파이어를 사용하여 한국어는 pretendard, 그 외에는 시스템 폰트를 사용하도록 수정

This commit is contained in:
Yu Sung
2026-01-23 03:25:19 +09:00
parent c9c1db39a6
commit b3331d5512
44 changed files with 166 additions and 150 deletions
@@ -86,7 +86,7 @@ struct AiMessageItemView: View {
VStack(alignment: .leading, spacing: 4) {
HStack(spacing: 4) {
Text(characterName)
.font(.custom(Font.preRegular.rawValue, size: 12))
.appFont(size: 12, weight: .regular)
.foregroundColor(.white)
}
@@ -162,7 +162,7 @@ struct AiMessageItemView: View {
// 시간 표시
VStack {
Text(formatTime(from: message.createdAt))
.font(.custom(Font.preRegular.rawValue, size: 10))
.appFont(size: 10, weight: .regular)
.foregroundColor(.white)
}
@@ -185,7 +185,7 @@ struct AiMessageItemView: View {
// 첫 번째 컴포넌트는 항상 일반 텍스트
if !component.isEmpty {
result = result + Text(component)
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}
} else {
@@ -202,13 +202,13 @@ struct AiMessageItemView: View {
// 소괄호 뒤의 텍스트 (일반 스타일)
if !afterClose.isEmpty {
result = result + Text(afterClose)
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}
} else {
// 닫는 괄호가 없으면 일반 텍스트로 처리
result = result + Text("(\(component)")
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}
}
@@ -37,7 +37,7 @@ struct TypingIndicatorItemView: View {
VStack(alignment: .leading, spacing: 4) {
HStack(spacing: 4) {
Text(characterName)
.font(.custom(Font.preRegular.rawValue, size: 12))
.appFont(size: 12, weight: .regular)
.foregroundColor(.white)
}
@@ -69,7 +69,7 @@ struct UserMessageItemView: View {
// 시간 표시
VStack {
Text(formatTime(from: message.createdAt))
.font(.custom(Font.preRegular.rawValue, size: 10))
.appFont(size: 10, weight: .regular)
.foregroundColor(.white)
}
@@ -106,7 +106,7 @@ struct UserMessageItemView: View {
// 첫 번째 컴포넌트는 항상 일반 텍스트
if !component.isEmpty {
result = result + Text(component)
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}
} else {
@@ -123,13 +123,13 @@ struct UserMessageItemView: View {
// 소괄호 뒤의 텍스트 (일반 스타일)
if !afterClose.isEmpty {
result = result + Text(afterClose)
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}
} else {
// 닫는 괄호가 없으면 일반 텍스트로 처리
result = result + Text("(\(component)")
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}
}