@@ -81,6 +81,36 @@ const GlobalStyle = createGlobalStyle`
8181 url('../../public/fonts/woff2/Pretendard-Thin.woff2') format('woff2'),
8282 url('../../public/fonts/woff/Pretendard-Thin.woff') format('woff');
8383}
84+
85+ @font-face {
86+ font-family: 'Pretendard';
87+ font-weight: 200;
88+ font-display: swap;
89+ src: local('Pretendard ExtraLight'),
90+ url('../../public/fonts/woff2/Pretendard-ExtraLight.woff2') format('woff2'),
91+ url('../../public/fonts/woff/Pretendard-ExtraLight.woff') format('woff');
92+ }
93+
94+ @font-face {
95+ font-family: 'Pretendard';
96+ font-weight: 300;
97+ font-display: swap;
98+ src: local('Pretendard Light'),
99+ url('../../public/fonts/woff2/Pretendard-Light.woff2') format('woff2'),
100+ url('../../public/fonts/woff/Pretendard-Light.woff') format('woff');
101+ }
102+
103+ /* iOS Safari에서 더 가벼운 기본 폰트 사용 */
104+ @supports (-webkit-appearance: none) {
105+ @font-face {
106+ font-family: 'PretendardLight';
107+ font-weight: normal;
108+ font-display: swap;
109+ src: local('Pretendard Light'),
110+ url('../../public/fonts/woff2/Pretendard-Light.woff2') format('woff2'),
111+ url('../../public/fonts/woff/Pretendard-Light.woff') format('woff');
112+ }
113+ }
84114* {
85115 padding: 0;
86116 margin: 0;
@@ -90,6 +120,7 @@ const GlobalStyle = createGlobalStyle`
90120 -webkit-font-smoothing: antialiased;
91121 -moz-osx-font-smoothing: grayscale;
92122 font-synthesis: none;
123+ text-rendering: optimizeLegibility;
93124}
94125
95126/* iOS에서의 폰트 렌더링 최적화 */
@@ -98,6 +129,24 @@ const GlobalStyle = createGlobalStyle`
98129 -webkit-font-smoothing: subpixel-antialiased;
99130 }
100131}
132+
133+ /* iOS Safari 전용 폰트 최적화 */
134+ @supports (-webkit-appearance: none) {
135+ * {
136+ -webkit-font-smoothing: subpixel-antialiased;
137+ -webkit-text-stroke: 0.1px transparent;
138+ font-family: 'PretendardLight', 'Pretendard', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
139+ }
140+ }
141+
142+ /* iPhone에서 Pretendard 폰트가 두껍게 보이는 문제 해결 */
143+ @media only screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
144+ * {
145+ font-family: 'PretendardLight', 'Pretendard', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
146+ -webkit-font-smoothing: subpixel-antialiased;
147+ -webkit-text-stroke: 0.05px transparent;
148+ }
149+ }
101150` ;
102151
103152export default GlobalStyle ;
0 commit comments