-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Paywalls V2] TextComponentStyle no longer needs a Composable context (…
- Loading branch information
1 parent
d098930
commit ab1b344
Showing
10 changed files
with
183 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...i/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/SystemFontFamily.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@file:JvmSynthetic | ||
|
||
package com.revenuecat.purchases.ui.revenuecatui.components | ||
|
||
import androidx.compose.ui.text.font.DeviceFontFamilyName | ||
import androidx.compose.ui.text.font.Font | ||
import androidx.compose.ui.text.font.FontFamily | ||
import androidx.compose.ui.text.font.FontWeight | ||
|
||
/** | ||
* Get an Android system-installed font by [familyName]. | ||
*/ | ||
@Suppress("FunctionName") | ||
@JvmSynthetic | ||
internal fun SystemFontFamily(familyName: String, weight: FontWeight?): FontFamily = | ||
FontFamily( | ||
Font( | ||
familyName = DeviceFontFamilyName(familyName), | ||
weight = weight ?: FontWeight.Normal, | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.