FontStyle Constructors

Definition

Overloads

FontStyle()

Create FontStyle with specific weight and italic

FontStyle(Int32, FontSlant)

Create FontStyle with specific weight and italic

FontStyle()

Create FontStyle with specific weight and italic

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=29)]
public FontStyle ();
Attributes

Remarks

Java documentation for android.graphics.fonts.FontStyle.FontStyle(int, 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

FontStyle(Int32, FontSlant)

Create FontStyle with specific weight and italic

[Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=29)]
public FontStyle (int weight, Android.Graphics.Fonts.FontSlant slant);
[<Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=29)>]
new Android.Graphics.Fonts.FontStyle : int * Android.Graphics.Fonts.FontSlant -> Android.Graphics.Fonts.FontStyle

Parameters

weight
Int32

a weight value

slant
FontSlant

a slant value

Attributes

Remarks

Create FontStyle with specific weight and italic

<table> <thead> <tr> <th align="center">Value</th> <th align="center">Name</th> <th align="center">Android Definition</th> </tr> </thead> <tbody> <tr> <td align="center">100</td> <td align="center">Thin</td> <td align="center">FontStyle#FONT_WEIGHT_THIN</td> </tr> <tr> <td align="center">200</td> <td align="center">Extra Light (Ultra Light)</td> <td align="center">FontStyle#FONT_WEIGHT_EXTRA_LIGHT</td> </tr> <tr> <td align="center">300</td> <td align="center">Light</td> <td align="center">FontStyle#FONT_WEIGHT_LIGHT</td> </tr> <tr> <td align="center">400</td> <td align="center">Normal (Regular)</td> <td align="center">FontStyle#FONT_WEIGHT_NORMAL</td> </tr> <tr> <td align="center">500</td> <td align="center">Medium</td> <td align="center">FontStyle#FONT_WEIGHT_MEDIUM</td> </tr> <tr> <td align="center">600</td> <td align="center">Semi Bold (Demi Bold)</td> <td align="center">FontStyle#FONT_WEIGHT_SEMI_BOLD</td> </tr> <tr> <td align="center">700</td> <td align="center">Bold</td> <td align="center">FontStyle#FONT_WEIGHT_BOLD</td> </tr> <tr> <td align="center">800</td> <td align="center">Extra Bold (Ultra Bold)</td> <td align="center">FontStyle#FONT_WEIGHT_EXTRA_BOLD</td> </tr> <tr> <td align="center">900</td> <td align="center">Black (Heavy)</td> <td align="center">FontStyle#FONT_WEIGHT_BLACK</td> </tr> </tbody>

Java documentation for android.graphics.fonts.FontStyle.FontStyle(int, 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