Skip to content

Commit

Permalink
Replace font with Montserrat
Browse files Browse the repository at this point in the history
  • Loading branch information
siper committed Jun 5, 2024
1 parent 494a4c2 commit ee83667
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/ui/src/main/java/ru/stersh/youamp/core/ui/Type.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight

private val PoppingFontFamily = FontFamily(
Font(R.font.poppins_light, FontWeight.Light),
Font(R.font.poppins_regular, FontWeight.Normal),
Font(R.font.poppins_italic, FontWeight.Normal, FontStyle.Italic),
Font(R.font.poppins_medium, FontWeight.Medium),
Font(R.font.poppins_bold, FontWeight.Bold)
private val MontserratFontFamily = FontFamily(
Font(R.font.montserrat_light, FontWeight.Light),
Font(R.font.montserrat_regular, FontWeight.Normal),
Font(R.font.montserrat_italic, FontWeight.Normal, FontStyle.Italic),
Font(R.font.montserrat_medium, FontWeight.Medium),
Font(R.font.montserrat_bold, FontWeight.Bold)
)

val Typography = Typography().defaultFontFamily(fontFamily = PoppingFontFamily)
val Typography = Typography().defaultFontFamily(fontFamily = MontserratFontFamily)

private fun Typography.defaultFontFamily(fontFamily: FontFamily): Typography {
return this.copy(
Expand Down
Binary file added core/ui/src/main/res/font/montserrat_bold.ttf
Binary file not shown.
Binary file added core/ui/src/main/res/font/montserrat_italic.ttf
Binary file not shown.
Binary file added core/ui/src/main/res/font/montserrat_light.ttf
Binary file not shown.
Binary file added core/ui/src/main/res/font/montserrat_medium.ttf
Binary file not shown.
Binary file added core/ui/src/main/res/font/montserrat_regular.ttf
Binary file not shown.
Binary file removed core/ui/src/main/res/font/poppins_bold.ttf
Binary file not shown.
Binary file removed core/ui/src/main/res/font/poppins_italic.ttf
Binary file not shown.
Binary file removed core/ui/src/main/res/font/poppins_light.ttf
Binary file not shown.
Binary file removed core/ui/src/main/res/font/poppins_medium.ttf
Binary file not shown.
Binary file removed core/ui/src/main/res/font/poppins_regular.ttf
Binary file not shown.

0 comments on commit ee83667

Please sign in to comment.