mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-05-16 15:51:31 +00:00
Migrate to 0.3.0-build146 (codeviewer)
This commit is contained in:
@@ -24,8 +24,8 @@ actual suspend fun imageFromUrl(url: String): ImageBitmap {
|
||||
}
|
||||
|
||||
@Composable
|
||||
actual fun font(name: String, res: String, weight: FontWeight, style: FontStyle): Font {
|
||||
actual fun Font(name: String, res: String, weight: FontWeight, style: FontStyle): Font {
|
||||
val context = AmbientContext.current
|
||||
val id = context.resources.getIdentifier(res, "font", context.packageName)
|
||||
return androidx.compose.ui.text.font.font(id, weight, style)
|
||||
return androidx.compose.ui.text.font.Font(id, weight, style)
|
||||
}
|
||||
Reference in New Issue
Block a user