Typeface.CustomFallbackBuilder.SetStyle(FontStyle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a font style of the Typeface.
[Android.Runtime.Register("setStyle", "(Landroid/graphics/fonts/FontStyle;)Landroid/graphics/Typeface$CustomFallbackBuilder;", "", ApiSince=29)]
public Android.Graphics.Typeface.CustomFallbackBuilder SetStyle(Android.Graphics.Fonts.FontStyle style);
[<Android.Runtime.Register("setStyle", "(Landroid/graphics/fonts/FontStyle;)Landroid/graphics/Typeface$CustomFallbackBuilder;", "", ApiSince=29)>]
member this.SetStyle : Android.Graphics.Fonts.FontStyle -> Android.Graphics.Typeface.CustomFallbackBuilder
Parameters
- style
- FontStyle
a font style. This value cannot be null.
Returns
- Attributes
Remarks
Sets a font style of the Typeface. If the font family doesn't have a font of given style, system will select the closest font from font family. For example, if a font family has fonts of 300 weight and 700 weight then setWeight(400) is called, system will select the font of 300 weight.
Android reference for android.graphics.Typeface.CustomFallbackBuilder.setStyle.
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.