커스텀 폰트 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

View File

@@ -32,7 +32,7 @@ struct OriginalWorkDetailHeaderView: View {
HStack(spacing: 4) {
Text(item.translated?.contentType ?? item.contentType)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "B0BEC5"))
.padding(.horizontal, 7)
.padding(.vertical, 3)
@@ -45,7 +45,7 @@ struct OriginalWorkDetailHeaderView: View {
}
Text(item.translated?.category ?? item.category)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(.button)
.padding(.horizontal, 7)
.padding(.vertical, 3)
@@ -59,7 +59,7 @@ struct OriginalWorkDetailHeaderView: View {
if item.isAdult {
Text("19+")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "ff5c49"))
.padding(.horizontal, 7)
.padding(.vertical, 3)
@@ -79,7 +79,7 @@ struct OriginalWorkDetailHeaderView: View {
.map { $0.hasPrefix("#") ? $0 : "#\($0)" }
.joined(separator: " ")
)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "3bb9f1"))
.frame(maxWidth: .infinity)
.padding(.top, 14)

View File

@@ -161,7 +161,7 @@ struct OriginalWorkInfoView: View {
.foregroundColor(.white)
Text(response.translated?.description ?? response.description)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "B0BEC5"))
.lineLimit(isExpandDesc ? Int.max : 3)
.truncationMode(.tail)
@@ -185,7 +185,7 @@ struct OriginalWorkInfoView: View {
let link = response.originalLinks[$0]
Text(link)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(.white)
.onTapGesture {
if let url = URL(string: link) {
@@ -210,19 +210,19 @@ struct OriginalWorkInfoView: View {
VStack(alignment: .leading, spacing: 8) {
if let _ = response.writer {
Text("작가")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "B0BEC5"))
}
if let _ = response.studio {
Text("제작사")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "B0BEC5"))
}
if let _ = response.originalWork {
Text("원작")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "B0BEC5"))
}
}
@@ -230,19 +230,19 @@ struct OriginalWorkInfoView: View {
VStack(alignment: .leading, spacing: 8) {
if let writer = response.writer {
Text(writer)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(.white)
}
if let studio = response.studio {
Text(studio)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(.white)
}
if let originalWork = response.originalWork {
Text(originalWork)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(.white)
.underline(response.originalLink != nil ? true : false)
.onTapGesture {