Typeface.Builder.SetWeight(Int32) Method

Definition

Sets weight of the font.

[Android.Runtime.Register("setWeight", "(I)Landroid/graphics/Typeface$Builder;", "", ApiSince=26)]
public Android.Graphics.Typeface.Builder? SetWeight(int weight);
[<Android.Runtime.Register("setWeight", "(I)Landroid/graphics/Typeface$Builder;", "", ApiSince=26)>]
member this.SetWeight : int -> Android.Graphics.Typeface.Builder

Parameters

weight
Int32

a weight value. Value is between 1 and 1000 inclusive

Returns

Attributes

Remarks

Sets weight of the font. Tells the system the weight of the given font. If not provided, the system will resolve the weight value by reading font tables.

Android reference for android.graphics.Typeface.Builder.setWeight.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to