|
1 | 1 | package com.threegap.bitnagil.designsystem.font |
2 | 2 |
|
| 3 | +import androidx.compose.ui.text.ExperimentalTextApi |
3 | 4 | import androidx.compose.ui.text.font.Font |
4 | 5 | import androidx.compose.ui.text.font.FontFamily |
5 | | -import androidx.compose.ui.text.font.FontStyle |
| 6 | +import androidx.compose.ui.text.font.FontVariation |
6 | 7 | import androidx.compose.ui.text.font.FontWeight |
7 | 8 | import com.threegap.bitnagil.designsystem.R |
8 | 9 |
|
| 10 | +@OptIn(ExperimentalTextApi::class) |
9 | 11 | val pretendard = FontFamily( |
10 | | - Font(R.font.pretendard_black, FontWeight.Black, FontStyle.Normal), |
11 | | - Font(R.font.pretendard_extra_bold, FontWeight.ExtraBold, FontStyle.Normal), |
12 | | - Font(R.font.pretendard_bold, FontWeight.Bold, FontStyle.Normal), |
13 | | - Font(R.font.pretendard_semi_bold, FontWeight.SemiBold, FontStyle.Normal), |
14 | | - Font(R.font.pretendard_medium, FontWeight.Medium, FontStyle.Normal), |
15 | | - Font(R.font.pretendard_regular, FontWeight.Normal, FontStyle.Normal), |
16 | | - Font(R.font.pretendard_light, FontWeight.Light, FontStyle.Normal), |
17 | | - Font(R.font.pretendard_extra_light, FontWeight.ExtraLight, FontStyle.Normal), |
18 | | - Font(R.font.pretendard_thin, FontWeight.Thin, FontStyle.Normal), |
| 12 | + Font( |
| 13 | + resId = R.font.pretendard_variable, |
| 14 | + weight = FontWeight.Bold, |
| 15 | + variationSettings = FontVariation.Settings(FontVariation.weight(700)), |
| 16 | + ), |
| 17 | + Font( |
| 18 | + resId = R.font.pretendard_variable, |
| 19 | + weight = FontWeight.SemiBold, |
| 20 | + variationSettings = FontVariation.Settings(FontVariation.weight(600)), |
| 21 | + ), |
| 22 | + Font( |
| 23 | + resId = R.font.pretendard_variable, |
| 24 | + weight = FontWeight.Medium, |
| 25 | + variationSettings = FontVariation.Settings(FontVariation.weight(500)), |
| 26 | + ), |
| 27 | + Font( |
| 28 | + resId = R.font.pretendard_variable, |
| 29 | + weight = FontWeight.Normal, |
| 30 | + variationSettings = FontVariation.Settings(FontVariation.weight(400)), |
| 31 | + ), |
19 | 32 | ) |
20 | 33 |
|
21 | 34 | val cafe24SsurroundAir = FontFamily( |
22 | | - Font(R.font.cafe_24_ssurround_air_v1_1, FontWeight.Light, FontStyle.Normal), |
| 35 | + Font(R.font.cafe_24_ssurround_air_v1_1, FontWeight.Light), |
23 | 36 | ) |
0 commit comments