@@ -22,26 +22,36 @@ import androidx.compose.ui.text.font.FontFamily
2222import androidx.compose.ui.text.font.FontStyle
2323import androidx.compose.ui.text.font.FontWeight
2424import androidx.compose.ui.unit.sp
25- import dev.ishubhamsingh.splashy.core.utils.font
25+ import dev.ishubhamsingh.splashy.resources.Res
26+ import dev.ishubhamsingh.splashy.resources.lato_black
27+ import dev.ishubhamsingh.splashy.resources.lato_bold
28+ import dev.ishubhamsingh.splashy.resources.lato_light
29+ import dev.ishubhamsingh.splashy.resources.lato_regular
30+ import dev.ishubhamsingh.splashy.resources.lato_thin
31+ import dev.ishubhamsingh.splashy.resources.lobster_regular
32+ import org.jetbrains.compose.resources.Font
2633
2734@Composable
28- fun getLatoRegular () = FontFamily (font(" Lato" , " lato_regular" , FontWeight .Normal , FontStyle .Normal ))
35+ fun getLatoRegular () =
36+ FontFamily (
37+ Font (resource = Res .font.lato_regular, weight = FontWeight .Normal , style = FontStyle .Normal )
38+ )
2939
3040@Composable
31- fun getLatoBold () = FontFamily (font( " Lato " , " lato_bold" , FontWeight .Bold , FontStyle .Normal ))
41+ fun getLatoBold () = FontFamily (Font ( Res .font. lato_bold, FontWeight .Bold , FontStyle .Normal ))
3242
3343@Composable
34- fun getLatoBlack () = FontFamily (font( " Lato " , " lato_black" , FontWeight .Black , FontStyle .Normal ))
44+ fun getLatoBlack () = FontFamily (Font ( Res .font. lato_black, FontWeight .Black , FontStyle .Normal ))
3545
3646@Composable
37- fun getLatoThin () = FontFamily (font( " Lato " , " lato_thin" , FontWeight .Thin , FontStyle .Normal ))
47+ fun getLatoThin () = FontFamily (Font ( Res .font. lato_thin, FontWeight .Thin , FontStyle .Normal ))
3848
3949@Composable
40- fun getLatoLight () = FontFamily (font( " Lato " , " lato_light" , FontWeight .Light , FontStyle .Normal ))
50+ fun getLatoLight () = FontFamily (Font ( Res .font. lato_light, FontWeight .Light , FontStyle .Normal ))
4151
4252@Composable
4353fun getLobsterRegular () =
44- FontFamily (font( " Lobster " , " lobster_regular" , FontWeight .Normal , FontStyle .Normal ))
54+ FontFamily (Font ( Res .font. lobster_regular, FontWeight .Normal , FontStyle .Normal ))
4555
4656@Composable
4757fun getTypography (): Typography {
0 commit comments