ui-compose: import Manrope font
This commit is contained in:
parent
91f29f6a40
commit
bea80163ce
10 changed files with 11 additions and 11 deletions
|
@ -2,23 +2,22 @@ package dev.msfjarvis.aps.ui.compose.theme
|
|||
|
||||
import androidx.compose.material3.Typography
|
||||
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.FontWeight
|
||||
import androidx.compose.ui.unit.sp
|
||||
import dev.msfjarvis.aps.ui.compose.R
|
||||
|
||||
/** Uncomment the contents below if and when the font files get moved to this module. */
|
||||
internal val Manrope =
|
||||
FontFamily(
|
||||
/*
|
||||
Font(R.font.manrope_bold, FontWeight.Bold),
|
||||
Font(R.font.manrope_extrabold, FontWeight.ExtraBold),
|
||||
Font(R.font.manrope_extralight, FontWeight.ExtraLight),
|
||||
Font(R.font.manrope_light, FontWeight.Light),
|
||||
Font(R.font.manrope_medium, FontWeight.Medium),
|
||||
Font(R.font.manrope_regular, FontWeight.Normal),
|
||||
Font(R.font.manrope_semibold, FontWeight.SemiBold),
|
||||
*/
|
||||
)
|
||||
Font(R.font.manrope_bold, FontWeight.Bold),
|
||||
Font(R.font.manrope_extrabold, FontWeight.ExtraBold),
|
||||
Font(R.font.manrope_extralight, FontWeight.ExtraLight),
|
||||
Font(R.font.manrope_light, FontWeight.Light),
|
||||
Font(R.font.manrope_medium, FontWeight.Medium),
|
||||
Font(R.font.manrope_regular, FontWeight.Normal),
|
||||
Font(R.font.manrope_semibold, FontWeight.SemiBold),
|
||||
)
|
||||
|
||||
internal val AppTypography =
|
||||
Typography(
|
||||
|
|
28
ui-compose/src/main/res/font/manrope.xml
Normal file
28
ui-compose/src/main/res/font/manrope.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
||||
~ SPDX-License-Identifier: GPL-3.0-only
|
||||
-->
|
||||
|
||||
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<font
|
||||
app:font="@font/manrope_extralight"
|
||||
app:fontWeight="200" />
|
||||
<font
|
||||
app:font="@font/manrope_light"
|
||||
app:fontWeight="300" />
|
||||
<font
|
||||
app:font="@font/manrope_regular"
|
||||
app:fontWeight="400" />
|
||||
<font
|
||||
app:font="@font/manrope_medium"
|
||||
app:fontWeight="500" />
|
||||
<font
|
||||
app:font="@font/manrope_semibold"
|
||||
app:fontWeight="600" />
|
||||
<font
|
||||
app:font="@font/manrope_bold"
|
||||
app:fontWeight="700" />
|
||||
<font
|
||||
app:font="@font/manrope_extrabold"
|
||||
app:fontWeight="800" />
|
||||
</font-family>
|
BIN
ui-compose/src/main/res/font/manrope_bold.ttf
Normal file
BIN
ui-compose/src/main/res/font/manrope_bold.ttf
Normal file
Binary file not shown.
BIN
ui-compose/src/main/res/font/manrope_extrabold.ttf
Normal file
BIN
ui-compose/src/main/res/font/manrope_extrabold.ttf
Normal file
Binary file not shown.
BIN
ui-compose/src/main/res/font/manrope_extralight.ttf
Normal file
BIN
ui-compose/src/main/res/font/manrope_extralight.ttf
Normal file
Binary file not shown.
BIN
ui-compose/src/main/res/font/manrope_light.ttf
Normal file
BIN
ui-compose/src/main/res/font/manrope_light.ttf
Normal file
Binary file not shown.
BIN
ui-compose/src/main/res/font/manrope_medium.ttf
Normal file
BIN
ui-compose/src/main/res/font/manrope_medium.ttf
Normal file
Binary file not shown.
BIN
ui-compose/src/main/res/font/manrope_regular.ttf
Normal file
BIN
ui-compose/src/main/res/font/manrope_regular.ttf
Normal file
Binary file not shown.
BIN
ui-compose/src/main/res/font/manrope_semibold.ttf
Normal file
BIN
ui-compose/src/main/res/font/manrope_semibold.ttf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue