You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
780 B

package org.jetbrains.compose.resources
import androidx.compose.runtime.Composable
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
/**
* Creates a font with the specified resource ID, weight, and style.
*
* @param id The resource ID of the font.
* @param weight The weight of the font. Default value is [FontWeight.Normal].
* @param style The style of the font. Default value is [FontStyle.Normal].
*
* @return The created [Font] object.
*
* @throws NotFoundException if the specified resource ID is not found.
*/
@ExperimentalResourceApi
@Composable
expect fun Font(
id: ResourceId,
weight: FontWeight = FontWeight.Normal,
style: FontStyle = FontStyle.Normal
): Font