create

abstract fun create(weight: Int): FontWeight

创建一个具有指定字重值的 FontWeight 实例。

Return

对应字重的 FontWeight 实例。

Parameters

weight

字重值,必须在 1 到 1000 的范围内。