Skip to content

Commit e6b5428

Browse files
committed
Using downloadable fonts in Compose
1 parent 943fe1b commit e6b5428

File tree

1 file changed

+2
-2
lines changed
  • Jetchat/app/src/main/java/com/example/compose/jetchat/theme

1 file changed

+2
-2
lines changed

Jetchat/app/src/main/java/com/example/compose/jetchat/theme/Typography.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ val provider = GoogleFont.Provider(
3535
)
3636

3737
@OptIn(ExperimentalTextApi::class)
38-
val MontserratFont = GoogleFont("Montserrat")
38+
val MontserratFont = GoogleFont(name = "Montserrat")
3939

4040
@OptIn(ExperimentalTextApi::class)
41-
val KarlaFont = GoogleFont("Karla")
41+
val KarlaFont = GoogleFont(name = "Karla")
4242

4343
@OptIn(ExperimentalTextApi::class)
4444
val MontserratFontFamily = FontFamily(

0 commit comments

Comments
 (0)