public class RemoteFontWeight(public val weight: RemoteFloat)
Represents the thickness of glyphs in a font for Remote Compose.
Functions
equals
override fun equals(other: Any?): Boolean
Creates a RemoteFontWeight with the given integer weight value.
Parameters
| weight | The thickness of the font as an integer (e.g. 400 for normal, 700 for bold). |
hashCode
override fun hashCode(): Int
toString
override fun toString(): String
Members
Companion
public companion object
Properties
W100
@Stable public val W100: RemoteFontWeight = RemoteFontWeight(100.rf)
Thin font weight (100).
W200
@Stable public val W200: RemoteFontWeight = RemoteFontWeight(200.rf)
Extra light font weight (200).
W300
@Stable public val W300: RemoteFontWeight = RemoteFontWeight(300.rf)
Light font weight (300).
W400
@Stable public val W400: RemoteFontWeight = RemoteFontWeight(400.rf)
Normal / regular / plain font weight (400).
W500
@Stable public val W500: RemoteFontWeight = RemoteFontWeight(500.rf)
Medium font weight (500).
W600
@Stable public val W600: RemoteFontWeight = RemoteFontWeight(600.rf)
Semi-bold font weight (600).
W700
@Stable public val W700: RemoteFontWeight = RemoteFontWeight(700.rf)
Bold font weight (700).
W800
@Stable public val W800: RemoteFontWeight = RemoteFontWeight(800.rf)
Extra bold font weight (800).
W900
@Stable public val W900: RemoteFontWeight = RemoteFontWeight(900.rf)
Black font weight (900).
Thin
@Stable public val Thin: RemoteFontWeight = W100
Alias for W100.
ExtraLight
@Stable public val ExtraLight: RemoteFontWeight = W200
Alias for W200.
Light
@Stable public val Light: RemoteFontWeight = W300
Alias for W300.
Normal
@Stable public val Normal: RemoteFontWeight = W400
The default font weight - alias for W400.
Medium
@Stable public val Medium: RemoteFontWeight = W500
Alias for W500.
SemiBold
@Stable public val SemiBold: RemoteFontWeight = W600
Alias for W600.
Bold
@Stable public val Bold: RemoteFontWeight = W700
A commonly used font weight that is heavier than normal - alias for W700.
ExtraBold
@Stable public val ExtraBold: RemoteFontWeight = W800
Alias for W800.
Black
@Stable public val Black: RemoteFontWeight = W900
Alias for W900.