A fully functional Android app built entirely with Kotlin and Jetpack Compose
Switch off default font padding to avoid changing UI
Don Turnerc773fd7d0a9d
diff --git a/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/theme/Type.kt b/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/theme/Type.ktindex 0d3b06457..be8de71c5 100644--- a/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/theme/Type.kt+++ b/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/theme/Type.kt@@ -17,6 +17,7 @@package com.google.samples.apps.nowinandroid.core.designsystem.themeimport androidx.compose.material3.Typography+import androidx.compose.ui.text.PlatformTextStyleimport androidx.compose.ui.text.TextStyleimport androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.unit.sp@@ -24,95 +25,112 @@ import androidx.compose.ui.unit.sp/*** Now in Android typography.*/+val platformTextStyle = PlatformTextStyle(includeFontPadding = false)+internal val NiaTypography = Typography(displayLarge = TextStyle(fontWeight = FontWeight.Normal,fontSize = 57.sp,lineHeight = 64.sp,letterSpacing = (-0.25).sp,+ platformStyle = platformTextStyle,),displayMedium = TextStyle(fontWeight = FontWeight.Normal,fontSize = 45.sp,lineHeight = 52.sp,letterSpacing = 0.sp,+ platformStyle = platformTextStyle,),displaySmall = TextStyle(fontWeight = FontWeight.Normal,fontSize = 36.sp,lineHeight = 44.sp,letterSpacing = 0.sp,+ platformStyle = platformTextStyle,),headlineLarge = TextStyle(fontWeight = FontWeight.Normal,fontSize = 32.sp,lineHeight = 40.sp,letterSpacing = 0.sp,+ platformStyle = platformTextStyle,),headlineMedium = TextStyle(fontWeight = FontWeight.Normal,fontSize = 28.sp,lineHeight = 36.sp,letterSpacing = 0.sp,+ platformStyle = platformTextStyle,),headlineSmall = TextStyle(fontWeight = FontWeight.Normal,fontSize = 24.sp,lineHeight = 32.sp,letterSpacing = 0.sp,+ platformStyle = platformTextStyle,),titleLarge = TextStyle(fontWeight = FontWeight.Bold,fontSize = 22.sp,lineHeight = 28.sp,letterSpacing = 0.sp,+ platformStyle = platformTextStyle,),titleMedium = TextStyle(fontWeight = FontWeight.Bold,fontSize = 18.sp,lineHeight = 24.sp,letterSpacing = 0.1.sp,+ platformStyle = platformTextStyle,),titleSmall = TextStyle(fontWeight = FontWeight.Medium,fontSize = 14.sp,lineHeight = 20.sp,letterSpacing = 0.1.sp,+ platformStyle = platformTextStyle,),bodyLarge = TextStyle(fontWeight = FontWeight.Normal,fontSize = 16.sp,lineHeight = 24.sp,letterSpacing = 0.5.sp,+ platformStyle = platformTextStyle,),bodyMedium = TextStyle(fontWeight = FontWeight.Normal,fontSize = 14.sp,lineHeight = 20.sp,letterSpacing = 0.25.sp,+ platformStyle = platformTextStyle,),bodySmall = TextStyle(fontWeight = FontWeight.Normal,fontSize = 12.sp,lineHeight = 16.sp,letterSpacing = 0.4.sp,+ platformStyle = platformTextStyle,),labelLarge = TextStyle(fontWeight = FontWeight.Medium,fontSize = 14.sp,lineHeight = 20.sp,letterSpacing = 0.1.sp,+ platformStyle = platformTextStyle,),labelMedium = TextStyle(fontWeight = FontWeight.Medium,fontSize = 12.sp,lineHeight = 16.sp,letterSpacing = 0.5.sp,+ platformStyle = platformTextStyle,),labelSmall = TextStyle(fontWeight = FontWeight.Medium,fontSize = 10.sp,lineHeight = 16.sp,letterSpacing = 0.sp,+ platformStyle = platformTextStyle,),)