Language

Font.Builder.SetSlant(FontSlant) Method

Definition

Sets italic information of the font.

[Android.Runtime.Register("setSlant", "(I)Landroid/graphics/fonts/Font$Builder;", "", ApiSince=29)]
public Android.Graphics.Fonts.Font.Builder SetSlant(Android.Graphics.Fonts.FontSlant slant);
[<Android.Runtime.Register("setSlant", "(I)Landroid/graphics/fonts/Font$Builder;", "", ApiSince=29)>]
member this.SetSlant : Android.Graphics.Fonts.FontSlant -> Android.Graphics.Fonts.Font.Builder

Parameters

slant
FontSlant

Value is one of the following: FontStyle.FONT_SLANT_UPRIGHT; FontStyle.FONT_SLANT_ITALIC

Returns

this builder. This value cannot be null.

Attributes

Remarks

Sets italic information of the font. Tells the system the style of the given font. If this function is not called, the system will resolve the style by reading font tables. For example, if you want to use italic font as upright font, call setSlant(FontStyle.FONT_SLANT_UPRIGHT) explicitly.

Android reference for android.graphics.fonts.Font.Builder.setSlant.

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