|
@@ -2,27 +2,35 @@ package com.sirekanian.spacetime.ui.theme
|
|
|
|
|
|
|
|
import androidx.compose.material.Typography
|
|
import androidx.compose.material.Typography
|
|
|
import androidx.compose.ui.text.TextStyle
|
|
import androidx.compose.ui.text.TextStyle
|
|
|
|
|
+import androidx.compose.ui.text.font.Font
|
|
|
import androidx.compose.ui.text.font.FontFamily
|
|
import androidx.compose.ui.text.font.FontFamily
|
|
|
import androidx.compose.ui.text.font.FontWeight
|
|
import androidx.compose.ui.text.font.FontWeight
|
|
|
import androidx.compose.ui.unit.sp
|
|
import androidx.compose.ui.unit.sp
|
|
|
|
|
+import com.sirekanian.spacetime.R
|
|
|
|
|
+
|
|
|
|
|
+private val customFontFamily = FontFamily(
|
|
|
|
|
+ Font(R.font.amaticsc_regular, FontWeight.Normal),
|
|
|
|
|
+)
|
|
|
|
|
|
|
|
-// Set of Material typography styles to start with
|
|
|
|
|
val Typography = Typography(
|
|
val Typography = Typography(
|
|
|
body1 = TextStyle(
|
|
body1 = TextStyle(
|
|
|
fontFamily = FontFamily.Default,
|
|
fontFamily = FontFamily.Default,
|
|
|
fontWeight = FontWeight.Normal,
|
|
fontWeight = FontWeight.Normal,
|
|
|
fontSize = 16.sp
|
|
fontSize = 16.sp
|
|
|
- )
|
|
|
|
|
- /* Other default text styles to override
|
|
|
|
|
- button = TextStyle(
|
|
|
|
|
- fontFamily = FontFamily.Default,
|
|
|
|
|
- fontWeight = FontWeight.W500,
|
|
|
|
|
- fontSize = 14.sp
|
|
|
|
|
),
|
|
),
|
|
|
- caption = TextStyle(
|
|
|
|
|
- fontFamily = FontFamily.Default,
|
|
|
|
|
|
|
+ h2 = TextStyle(
|
|
|
|
|
+ fontFamily = customFontFamily,
|
|
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
|
|
+ fontSize = 60.sp,
|
|
|
|
|
+ ),
|
|
|
|
|
+ h3 = TextStyle(
|
|
|
|
|
+ fontFamily = customFontFamily,
|
|
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
|
|
+ fontSize = 48.sp,
|
|
|
|
|
+ ),
|
|
|
|
|
+ h4 = TextStyle(
|
|
|
|
|
+ fontFamily = customFontFamily,
|
|
|
fontWeight = FontWeight.Normal,
|
|
fontWeight = FontWeight.Normal,
|
|
|
- fontSize = 12.sp
|
|
|
|
|
|
|
+ fontSize = 34.sp,
|
|
|
)
|
|
)
|
|
|
- */
|
|
|
|
|
)
|
|
)
|