feat: font class
This commit is contained in:
parent
e511bdac98
commit
1da833a2a4
1 changed files with 40 additions and 0 deletions
|
@ -1,2 +1,42 @@
|
||||||
package xyz.atnrch.wrench.ui
|
package xyz.atnrch.wrench.ui
|
||||||
|
|
||||||
|
import androidx.compose.ui.text.font.FontFamily
|
||||||
|
import androidx.compose.ui.text.font.FontStyle
|
||||||
|
import androidx.compose.ui.text.font.FontWeight
|
||||||
|
import androidx.compose.ui.text.platform.Font
|
||||||
|
|
||||||
|
class Fonts {
|
||||||
|
companion object {
|
||||||
|
val JOST_MEDIUM: FontFamily = FontFamily(
|
||||||
|
Font(
|
||||||
|
resource = "font/Jost-Medium.ttf",
|
||||||
|
style = FontStyle.Normal,
|
||||||
|
weight = FontWeight.Medium
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
val JOST_BOLD: FontFamily = FontFamily(
|
||||||
|
Font(
|
||||||
|
resource = "font/Jost-Bold.ttf",
|
||||||
|
style = FontStyle.Normal,
|
||||||
|
weight = FontWeight.Bold
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
val JOST_MEDIUM_ITALIC: FontFamily = FontFamily(
|
||||||
|
Font(
|
||||||
|
resource = "font/Jost-MediumItalic.ttf",
|
||||||
|
style = FontStyle.Italic,
|
||||||
|
weight = FontWeight.Medium
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
val JOST_LIGHT_ITALIC: FontFamily = FontFamily(
|
||||||
|
Font(
|
||||||
|
resource = "font/Jost-LightItalic.ttf",
|
||||||
|
style = FontStyle.Italic,
|
||||||
|
weight = FontWeight.Light
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
Reference in a new issue