ui-compose: import Manrope font

This commit is contained in:
Harsh Shandilya 2022-07-06 22:19:01 +05:30
parent 91f29f6a40
commit bea80163ce
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
10 changed files with 11 additions and 11 deletions

View file

@ -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(

View 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>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.