다음을 통해 공유


PositionedGlyphs.GetWeightOverride(Int32) Method

Definition

Returns overridden weight value if the font is variable font and wght value is overridden for drawing.

[Android.Runtime.Register("getWeightOverride", "(I)F", "", ApiSince=35)]
public float GetWeightOverride (int index);
[<Android.Runtime.Register("getWeightOverride", "(I)F", "", ApiSince=35)>]
member this.GetWeightOverride : int -> single

Parameters

index
Int32

the glyph index

Returns

overridden weight value or #NO_OVERRIDE.

Attributes

Remarks

Returns overridden weight value if the font is variable font and `wght` value is overridden for drawing. Otherwise returns #NO_OVERRIDE.

Java documentation for android.graphics.text.PositionedGlyphs.getWeightOverride(int).

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