Language

Font.Builder.SetWeight(Int32) Method

Definition

Sets weight of the font.

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

Parameters

weight
Int32

a weight value. Value is between FontStyle.FONT_WEIGHT_MIN and FontStyle.FONT_WEIGHT_MAX inclusive

Returns

this builder. This value cannot be null.

Attributes

Remarks

Sets weight of the font. Tells the system the weight of the given font. If this function is not called, the system will resolve the weight value by reading font tables.

Android reference for android.graphics.fonts.Font.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